Changing the Default Document Format

19:08 |
Normally, Word saves your documents in what is known as "Word format." In Word 2007 and Word 2010 that means that the documents are stored in a format based on XML. This format may not be easily understood by other versions of Word, nor by other programs.

If you do a lot of work creating documents for other versions of Word or other programs, you may want to specify a different default file format for your documents. Word makes this easy by following these steps:

- Display the Word Options dialog box. (In Word 2007 click the Office button and then click Word Options. In Word 2010 display the File tab of the ribbon and then click Options.)

- Click the Save option at the left side of the dialog box. (See Figure 1.)


Figure 1. The Save option of the Word Options dialog box.

- Use the Save Files In This Format drop-down list to select a default file format.

- Click on OK.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip applies to Microsoft Word 2007 and 2010.

Auto Creation of an Acronym List

19:04 |
You work in a profession that uses a lot of acronyms . Their standard procedure is to define the acronym the first time it is only used in the document . Also, you always need to create an appendix at the end of the document, a list of acronyms in alphabetical order along with their meanings . Karl was looking for a way to "mark " the acronym for the main part and appendix of acronyms are automatically generated .

There is no way to do this directly in Word . There are several types of tables you can create automatic , such as the table of contents , table of authorities , and indexing . Two final table ( table of authorities and index ) can be used to create a list of acronyms , but only if you are not already added to your document and only if you do not remember the list of acronyms you include page numbers .

If you want to use the index tool in order to create your list, you can follow these general steps, assuming that the acronym, when defined, is followed by its meaning within parentheses:

- Select the acronym and its meaning. This means that you find the first instance of the acronym in your document and then select that acronym along with the parenthetical meaning that follows it.

- Press Alt+Shift+X to mark the selected text for the index.

- Repeat steps 1 and 2 for the other acronyms you want in your list.

- At the end of your document, insert your index. How to actually insert an index has been covered in other issues of WordTips.

You'll note that this approach leaves the parentheses in your index. If you don't want the parentheses, then you'll need to go to each acronym that you marked and display the field code used for the index. It will look something like this:

{ XE "abbrev (this is the definition)" }

Within the field code you can remove the parentheses so that the text appears just as you want it to appear in the acronym list. If you use the above method to mark only the first instance of the acronym—where it is first defined—then there will be a single page number for each acronym in your list. If you like the idea of having page numbers, but want them for all instances of each acronym, then you'll need to mark each occurrence of the acronyms—a much more involved task.

If you prefer not to use the either of the methods already described, you could create a macro that will aid you in creating your acronym list. The following macro essentially copies whatever text you have highlighted to the end of the document.

Sub Send_2_acronym_list()
    With ActiveDocument.Bookmarks
        .Add Range:=Selection.Range, Name:="xxxHERExxx"
        .DefaultSorting = wdSortByName
        .ShowHidden = True
    End With
    Selection.Copy
    Selection.EndKey Unit:=wdStory
    Selection.TypeParagraph
    Selection.PasteAndFormat (wdPasteDefault)
    Selection.GoTo What:=wdGoToBookmark, Name:="xxxHERExxx"
    Application.Run MacroName:="Normal.MoreNewMacros.EditGoTo"
    Selection.MoveRight Unit:=wdCharacter, Count:=1
End Sub

The idea is to select your first instance of the acronym, along with its definition, and then invoke the macro. A bookmark is set at the current location, the text is copied, the end of the document is selected, and the text added there. Then the bookmark is used so that the original location can again be selected.

When you are done "marking" your acronyms in this manner, you can select the text that was copied to the end of the document and format it (or edit it) in any way desired.

If you want an approach that is even more automated, then you may be able to create a macro that will scan through your document and extract any acronyms it finds. In order for an approach like this to work, you'll need to make sure that you religiously follow a rigid structure for your acronyms and their definitions. The following macro assumes that the acronym will always be a string of uppercase letters followed by a space and then some parenthetical text.

Sub ListAcronyms()
    Dim strAcronym As String
    Dim strDefine As String
    Dim strOutput As String
    Dim newDoc As Document

    Application.ScreenUpdating = False
    Selection.HomeKey Unit:=wdStory
    ActiveWindow.View.ShowHiddenText = False

   'Loop to find all acronyms
    Do
        'Search for acronyms using wildcards
        Selection.Find.ClearFormatting
        With Selection.Find
            .ClearFormatting
            .Text = "<[A-Z]@[A-Z]>"
            .Replacement.Text = ""
            .Forward = True
            .Wrap = wdFindStop
            .Format = False
            .MatchCase = True
            .MatchWildcards = True
            .MatchWholeWord = True
            .Execute
        End With

        'Only process if something found
        If Selection.Find.Found Then
            'Make a string from the selection, add it to the
            'output string
            strAcronym = Selection.Text

            'Look for definition
            Selection.MoveRight Unit:=wdWord
            Selection.MoveRight Unit:=wdCharacter, _
              Extend:=wdExtend
            strDefine = ""
            If Selection.Text = "(" Then
                While Selection <> ")"
                    strDefine = strDefine & Selection.Text
                    Selection.Collapse Direction:=wdCollapseEnd
                    Selection.MoveRight Unit:=wdCharacter, _
                      Extend:=wdExtend
                Wend
            End If
            Selection.Collapse Direction:=wdCollapseEnd
            If Left(strDefine, 1) = "(" Then
                strDefine = Mid(strDefine, 2, Len(strDefine))
            End If
            If strDefine > "" Then
                'Check if the search result is in the Output string
                'if it is, ignore the search result
                If InStr(strOutput, strAcronym) = 0 Then
                    strOutput = strOutput & strAcronym _
                      & vbTab & strDefine & vbCr
                End If
            End If
        End If
    Loop Until Not Selection.Find.Found

    'Create new document and change active document
    Set newDoc = Documents.Add

    'Insert the text
    Selection.TypeText Text:=strOutput

    'Sort it
    newDoc.Content.Sort SortOrder:=wdSortOrderAscending
    Application.ScreenUpdating = True
    Selection.HomeKey Unit:=wdStory
End Sub

The macro looks through the document for anything it thinks might be an acronym. If it finds a candidate, it looks after it to see if it is followed by an opening parenthesis. If so, then everything up to the closing parenthesis is considered the definition for the acronym. Once the macro is finished going through the document, it creates a new document, adds the acronyms there, and then sorts them all.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip applies to Microsoft Word 2007 and 2010.

Adding Individual Styles to the Template

18:58 |
Templates are used in Word to define how you want your menus, toolbar, glossary, and default styles to appear. When you are either adding new styles or changing existing styles, Word allows you to update the template to reflect those style changes. To do this, follow these steps:

Make sure the Home tab of the ribbon is displayed.

Click the small arrow at the bottom-right corner of the Styles group. The Styles pane appears at the right of the program window.

In the Styles pane, scroll through the list of styles until you see the style you want to change.

Move the mouse pointer over the style name and then click on the down-arrow at the right side of the style name.

Click on Modify. The Modify Style dialog box appears. (See Figure 1.)


Figure 1. The Modify Style dialog box.

Make sure the New Documents Based On This Template radio button is selected.

Make any changes to the style you desire.

Click on OK.

To add or update other styles in the template file, repeat steps 3 through 8.

When you have finished changing styles, close the Styles pane.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip applies to Microsoft Word 2007, 2010, and 2013. 

Adding Table Columns to Columns with Merged Cells

18:55 |
You have a table in which the cells on top of two adjacent columns are merged . If he position the insertion point in the first cell of the column adjacent ( but not in merged cells ) , and then insert a column to the right of the insertion point . From seriously adds a column , but also adds a checkbox to the right of the merged cells .

This is normal behavior for Word . Let's say your table consists of three columns , which we will call A , B , and C. If you combine the first row cells in column A and B , you now have two cells ( one large and one small ) in the first row and three cells in every other row . Position the insertion point in a column A cell that is not first , merged row and insert a column to the right and you discover that Word adds a new column B and push the other columns ( B and C old old ) the right. This means that Word can add a cell to the right of the merged cells ( in new column C ) , the first customers will be incorrect . A first row with three cells ( one large and two small ) and the other with four rows of cells - just like you so what you end up with after the insertion .

The problem comes in when to your table all the cells in the first row merged . For example , you can have a table that has two columns and two cells in the first row are merged into a single cell . When you insert a column to the right of the first column , Word adds a cell to the right of the first merged cell . What you can expect , however , that Word will insert columns without affecting the merged cells , such that the single merged cell will now spans three columns instead of two.

There is no way to do this when doing a simple insert columns . There are a few things you can try , however . Another method is to split the merged cell at the top , insert the desired column , and then merge three cells into one.

You can also go ahead and insert the column as described . Then select the cells merged old and new cells are added in the first row and merge them .

Another method is to separate the rows merged with the rest of the table by splitting the table . Then you can insert the desired columns and tables combined share previously . Of course , then you will need to expand the width of your merged cells so that it fully covers three columns below it .

Finally , you can insert cells instead of inserting columns . Assuming that your table has two columns of ten rows , follow these steps :

- Select the cells in the second column is in row two to ten . ( You can not select the merged cell in the top at all . )

- Display the Layout tab of the ribbon.

- Click the small icon in the bottom right corner of the Rows & Columns group . Word displays the Insert dialog box cells . ( See Figure 1 ) .


Hình 1. Các tế bào hộp thoại Insert.

- Hãy chắc chắn rằng các tế bào Dịch phải nút tùy chọn được chọn.

- Nhấn OK.

Từ chuyển các tế bào chọn theo bên phải và chèn các ô trống. Hàng đầu vẫn không thay đổi, với các tế bào bị sáp nhập vẫn còn kéo dài các cột đầu tiên và thứ hai. Nếu bạn muốn các tế bào bị sáp nhập để mở rộng tất cả ba cột, bạn sẽ cần phải kéo biên giới di động vì vậy nó là chiều rộng mong muốn.

WordTips là nguồn cung cấp đào tạo Microsoft Word hiệu quả chi phí. (Microsoft Word là phần mềm xử lý văn bản phổ biến nhất trên thế giới.) Mẹo này áp dụng cho Microsoft Word 2007 và 2010.

Alphabetizing By Last Name

18:51 |
It is not unusual to have a list of names in a document, and then need to sort those names. The format in which the names appear can be bothersome, however. For instance, if the names are in the order FIRST LAST, then it can be more challenging to sort them than if they are in a LAST, FIRST order. There are several ways you can accomplish the task, however. One way is with the use of tables. All you need to do is follow these general steps:

1.Convert the text to a table, using the space between the first and last names as a separator between columns.

2. Sort the names based upon the second column, which contains the last name.

3. Convert the table back into text.

This process might sound difficult, but it can go very quickly and allows you to easily see what Word is doing during the sorting.

Another approach that doesn't require messing around with tables is to simply sort the text by words. You can do that by following these steps:

- Make sure the names in your document are arranged so there is only one person per paragraph.

- Select all the paragraphs containing names.

- Make sure the Home tab of the ribbon is displayed.

- Click the Sort tool in the Paragraph group. Word displays the Sort Text dialog box. (See Figure 1.)


Figure 1. The Sort Text dialog box.

- Click on Options. Word displays the Sort Options dialog box. (See Figure 2.)


Figure 2. The Sort Options dialog box.

- Select the Other option.

- Erase whatever is in the box to the right of Other, replacing it with a single space. (You are telling Word that you want to consider spaces as the dividing point between sort fields.)

- Click on OK to close the Sort Options dialog box.

- Use the Sort By drop-down lists to specify the word by which you want to sort. For instance, if you want to sort by last name (the word after the first space), you should choose Word 2 in the Sort By drop-down list.

- Click on OK to sort your names.

You should note that this approach only works properly depending on the construction of the names in your list. If there is only a first and last name for each person, then the sorting works fine. It will also work fine if there is a first, middle, and last name for each person—the only difference is that you would select Word 3 in step 8. Problems creep in, however, if there are two names for some people and three for others. In those instances, even the convert-to-table approach first mentioned will not work properly. In that case you must do something to make sure that Word treats first and middle names as if they are a single word; for instance, by separating them with a non-breaking space.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip applies to Microsoft Word 2007, 2010, and 2013.

Controlling the Format of Cross-References

18:47 |
Stephen asked if it is possible to control the format of cross-references inserted by Word. When he inserts a label and number such as Table 1 or Figure 12, he wants the label lowercase (table, figure) and a non-breaking space between the label and the number.

There is no way to control this type of cross-reference formatting in Word. Obviously you can change the cross-references manually after placing them, but whenever you update fields the original Word-chosen format will be used for them. There are a couple of macro-based solutions you can try. The first solution will change the actual field codes used for the field:

Sub FieldRefChanges1()
    On Error Resume Next
    Dim oStoryRng As Range
    Dim oFld As Field

    For Each oStoryRng In ActiveDocument.StoryRanges
        For Each oFld In oStoryRng.Fields
            If oFld.Type = wdFieldRef And oFld.Result.Words.Count <= 2 Then
                'add format switch with lowercase option to field codes
                oFld.Code.Text = oFld.Code.Text & "\* lower "
                'updates the field results to display the new format
                oFld.Update
            End If
        Next oFld
    Next oStoryRng
End Sub

The macro includes a couple of nested For loops. The first one steps through each story in the document, and the second goes through each field in each story. An If statement is then used to make sure that the field is a REF field (the kind used for cross-references) and that the result of the field is two or fewer words (as in Table 1 or Figure 12).

If these criteria are met, then the macro makes a change to the actual field code, adding the switch that results in the field being displayed in lowercase.

There are a couple of drawbacks to this macro. First, if you run it multiple times, the \* lower switch is added to the REF fields multiple times. Second, the macro doesn't change the space in the field results to a non-breaking space.

To overcome both problems, just modify the macro so that it automates the manual process you would go through to change the macro results.

Sub FieldRefChanges2()
    On Error Resume Next
    Dim oStoryRng As Range
    Dim oFld As Field
    Dim sTemp As String
    Dim J As String

    For Each oStoryRng In ActiveDocument.StoryRanges
        For Each oFld In oStoryRng.Fields
            If oFld.Type = wdFieldRef And oFld.Result.Words.Count <= 2 Then
                sTemp = oFld.Result.Text
                sTemp = LCase(sTemp)
                J = InStr(sTemp, " ")
                sTemp = Left(sTemp, J - 1) & Chr(160) & _
                  Mid(sTemp, J + 1, Len(sTemp) - J)
                oFld.Result.Text = sTemp
            End If
        Next oFld
    Next oStoryRng
End Sub

This macro is essentially the same as the previous one, except that it works strictly with the result text for the field. The text is assigned to the sTemp variable, which is then converted to lowercase. The position of the space is determined, and it is replaced with a non-breaking space. The result is then stuffed back into the result text for the field.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip applies to Microsoft Word 2007 and 2010.

Backing Up Your AutoText Entries

18:45 |
AutoText allows you assign text or graphics to a keyword and then replace the keyword with the text or graphics whenever you want. If you have been a long-time user of Word, chances are pretty good that you have developed quite a few AutoText entries for things like signature blocks in letters, boilerplate text, and long, hard-to-spell words.

Assuming you have quite a few AutoText entries, you may be wondering how you can back up those entries so they can be moved to a different computer. It is quite easy to do, really. All you need to do is back up your template files. This is where the AutoText entries are stored.

It is a good bet that most of your commonly used AutoText entries are in the Normal template file, so backing up this file will help you retain the majority of your information. Many Word users, however, also store AutoText entries in other template files. For instance, you may only have your AutoText entry for your signature block stored in the template you use to create letters.

To be safe, you can use the Find File feature to locate all the files on your system that use either the DOTX or DOTM extension. These can then be quickly copied to some backup medium, such as a CD-ROM, a memory drive, or to another disk location.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip applies to Microsoft Word 2007 and 2010.

Adding a Diagonal Watermark with a PostScript Printer

18:43 |
A watermark is light printing that appears behind your normal text. With a PostScript printer, you can easily add a watermark to your documents by adding the Print field code to either your header or footer. Every page that uses the header or footer will show the watermark.

For instance, the following command, when placed in a field, will print the word DRAFT in a 100-point font at a 45-degree angle in the center of your document.

Print \p page " /Wmark (DRAFT) def /WSize 100 def /Wrot
45 def wp$x wp$right sub wp$left add 2 div wp$y wp$top
sub wp$bottom add 2 div translate Wrot rotate
/Helvetica-BoldOblique findfont WSize scalefont setfont
.7 setgray 3 setlinewidth Wmark stringwidth pop 2 div
neg WSize .4 mul neg moveto Wmark true charpath stroke "

The information shown above should be entered exactly as shown, but as a single paragraph. In other words, don't press Enter within the text. Simply position the insertion pointer within the header or footer, then press Ctrl+F9 to insert a set of field braces. The information shown above is placed within the braces, as a single paragraph.

The font used is bold italics Helvetica; if you do not have that font in your printer, you can change the font in the code. You can also change the angle at which the watermark is printed by changing the number 45 on the first line, or you can change the word that is printed by changing the word DRAFT on the first line.

Remember that this works only with a PostScript printer. If you are using a non-PostScript printer or a non-PostScript printer driver with a printer that will understand multiple languages, then the field won't work at all. If your printer doesn't use true PostScript, but instead emulates the language, the field may not work as desired.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip applies to Microsoft Word 2007 and 2010.

Adding Page Numbers

18:38 |
If you are creating documents that are more than a page or two in length, you will probably want to include page numbers so you can keep your document, when printed, in order. Word supports automatic numbering of pages in your document and you can control the type of page number, the starting number, and the placement of the page number. In addition, you can include page numbers in the headers and footers on your pages.

The easiest way to add page numbers is to use the Insert tab of the ribbon. In the Header & Footer group you'll notice the Page Number tool. When you click the tool you are presented with a variety of ways in which you can insert your page numbers. These options are presented in several groups:

- Top of Page. The options in this grouping allow you to add a formatted page number to the top of each page (the header) in the current section.

- Bottom of Page. The options in this grouping allow you to add a formatted page number to the bottom of each page (the footer) in the current section.

- Page Margins. Adds a page number to either the left or right margin of the page.

- Current Position. Used to add a page number at the current location of the insertion point.

All told there are well over 100 different ways that you can insert formatted page numbers in your document. All you need to do is pick the one you want, and Word does the rest.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip applies to Microsoft Word 2007, 2010, and 2013. 

Changing Many Link Locations

18:35 |
In a corporate environment, documents are often kept on a network server. That server may not even be close to where you are—it may be across the country or around the world. If you are creating documents that include many graphics, it is common practice to only link to those graphics, and to store the graphics on a network server where they are accessible by everyone using the document.

What happens when the server changes, however? What if the company updates or moves a server, and in the process changes the address at which your graphics are accessed? When linking to graphics over a network, Word keeps track of the graphic's location using a UNC (Universal Naming Convention). If the UNC address of your graphics changes, you need to change the UNC used in the link. It is possible to do this one link at a time, but if you have many, many graphics in a document, this can be a major pain.

There is a quicker way to update the UNC address of a server, however. Let's say that you work for a company, and they change servers, thereby changing the UNC address at which your graphics are accessed. In examining the old and new addresses, you notice that the only thing that changed was the name of one server, from bcdapp to qcyapp. To change all the links in your document to reflect the new server name, follow these steps:

- Open the document in which you want to change the links.

- Change to Draft view. (If you are in Print Layout view, Word tries to repaginate quite often as you try to do the changes, and that makes this whole process much longer.)

- Press Alt+F9 so that field codes are showing. (Links are nothing but field codes, so the full field codes for each of your links should be visible.)

- Press Ctrl+H. Word displays the Replace tab of the Find and Replace dialog box. (See Figure 1.)


Figure 1. The Replace tab of the Find and Replace dialog box.

- In the Find box, enter the portion of the link you want to change. In the example described above, you would enter bcdapp.

- In the Replace box, enter the new portion of the link. In the example described above, you would enter qcyapp.

- Click Replace All. Word replaces all the text within the exposed links.

- Close the Find and Replace dialog box.

- Press Alt+F9 so that field results are showing. (Your results still won't show properly until you do the next two steps.)

- Select the entire document by pressing Ctrl+A.

- Press F9. Word updates all the fields in the document, including those links you just changed.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip applies to Microsoft Word 2007 and 2010.

Creating an E-mail Message from the Current Document

18:15 |
You have created a short document in Word that you want to send to others . You know you can send the document as an attachment to an e - mail , but instead would have simply document the body of the e - mail you want to send . You wonder if there is a way to do this in Word without having to do an operation to copy / paste . You wonder if there's some stuff you can click or you can issue the command to start Outlook , create a new e-mail message , and insert the document content in the body of the message .

In fact , Word does not provide the ability , it's just hidden in the command is not available on the ribbon tab . This is a quick way to do it :

- Display the Word Options dialog box . ( In Word 2007 click the Office button and then click Word Options. During Word 2010 and Word 2013 display the File tab of the ribbon and then click Options . )

- On the left side of the screen click Customize ( Word 2007 ) or the Quick Access Toolbar ( Word 2010 and Word 2013 ) . ( See Figure 1 ) .


Figure 1. The Word Options dialog box.

- Using the Choose Commands From drop-down list, choose All Commands.

- Scroll through the commands until you can see and select the Send to Mail Recipient command.

- Click the Add button. The command moves to the right column.

- Click OK.

This particular command provides the same functionality that used to exist in earlier versions of Word to send your document as an actual e-mail message.

There are a couple other buried commands that you might also want to consider adding to your Quick Access Toolbar. In the All Commands list you can find the following, in addition to the one you added in the steps above:

Email. This command sends the current document as an attachment to an e-mail message. (This is specifically what Alan said he didn't want to do.)

E-mail as PDF Attachment. This option is similar to the Email command, except it doesn't send a Word document, it sends a PDF of the current document.

E-mail as XPS Attachment. This command sends an attachment, but in a variant of the XML format—XPS. The recipient will need an XPS viewer to read the document, but if he/she has Windows 7 or Windows 8 it should not be a problem.

E-mail Options. This allows you to set up features of your e-mail messages, such as signatures and stationary.

There are two other e-mail related commands available, as well. The E-mail Messages command is actually available from the Mailings tab of the ribbon; it starts a mail merge where the "mail" being created is an e-mail message. (In other words, it is for sending the same message to a group of recipients selected from a database of recipients.) The Send Email Messages command is used to finish out the mail merge and actually send the messages.

Finally, just so nobody writes in and tells me my editing is inconsistent—I know it is, at times, but in this case it is beside the point. The permutations of "email" and "e-mail" in this tip are intentional, as they reflect the actual punctuation used in the command names in Word. If you feel the need to write to someone, write to Microsoft—they are the ones being inconsistent in this case. ;-)

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (5650) applies to Microsoft Word 2007, 2010, and 2013.

Inserting a Sound File in Your Document

17:49 |
If you are the type that likes to give your documents a slant toward multimedia, Word allows you to insert sound files in your document. This is done in this manner:

Position the insertion point where you want the sound inserted.

Display the Insert tab of the ribbon.

Click Object in the Text group. Word displays the Object dialog box.

Click on the Create from File tab. (See Figure 1.)


Figure 1. The Create from File tab of the Object dialog box.

Use the controls on the dialog box to locate a sound file that you want included with your document.

Click on OK. An icon that looks like a speaker is inserted in your document.

You can later listen to your sound file by simply double-clicking on the speaker icon.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip applies to Microsoft Word 2007 and 2010.

Accessing Paragraphs in a Macro

17:46 |
One of the nifty things about programming VBA macros is that the language is object-oriented. This means that you can access every part of your document using objects and collections of objects. In other words, you can manipulate paragraphs without ever needing to select them.

For instance, let's say you wanted to access each paragraph of a document, in turn, and do some processing on the text in that paragraph. Since each paragraph is a distinct object in the document, this is relatively easy. All of the paragraph objects are accessible as part of the Paragraphs collection. The following code will do the trick:

iParCount = ActiveDocument.Paragraphs.Count
For J = 1 To iParCount
    sMyPar = ActiveDocument.Paragraphs(J).Range.Text
    [Add processing comments to manipulate sMyPar]
    ActiveDocument.Paragraphs(J).Range.Text = sMyPar
Next J

The first line of the code sets iParCount equal to the number of paragraphs in the current document. The loop starting in the second line then does the main work in the macro. The third line set the sMyPar string equal to the text within the specified paragraph. (When J is equal to 1, you are working with the first paragraph. When J is equal to 2, it is the second paragraph—and so on.)

After the processing of sMyPar is complete, then the next line sets the document text equal to the modified text in the sMyPar string.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip applies to Microsoft Word 2007 and 2010.

A Picture Is Worth a Thousand Words

17:44 |
If you have ever tried to explain computer configuration or processes to someone over the phone, you know the process can be quite frustrating. You are never quite sure if the person on the other end is looking at the same thing on their screen that you are.

A quick way to ease this predicament is to write up your instructions and include pictures. Word, in conjunction with Windows, makes this quite easy. Try this the next time you are faced with this task:

- On your computer, walk through the steps you want to explain.

- At appropriate times, capture the entire screen or a single dialog box to the Clipboard. You do this by pressing the Print Screen key to capture the entire screen, or Alt+Print Screen to capture the active window or dialog box.

- Paste the captured screen information into Word by pressing Ctrl+V.

- Add any explanatory text necessary.

- Repeat steps 2 through 4 until you are finished.

- Save your document.

At this point you can e-mail the document to the remote site, or you can transmit it in some other way, such as printing or by disk.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip applies to Microsoft Word 2007 and 2010.

A Shortcut for Switching Focus

17:41 |
You probably already know that you can use the Alt+Tab shortcut to switch from one open application in Windows to another, right? What if you don't want to switch between applications, but simply want to switch to the desktop, then back to your application again? If you are using the mouse, you can click on the Show Desktop icon available in the Quick Launch toolbar, just to the right of the Start menu. (This depends on your version of Windows, obviously.)

Using the keyboard to switch focus in this manner is a bit different, however. Assuming you have an enhanced Windows keyboard—the one with the Windows key next to the Alt keys—then the answer is easy. In fact, there are two shortcuts you can use.

- Press Windows+M to minimize all the open windows and change focus to the desktop. To return focus to where you were last working, using Shift+Windows+M.

- Press Windows+D to minimize all the open windows and change focus to the desktop. Press Windows+D again, and focus is returned to the window in which you were previously working.

While this is not technically a Word tip (it is a Windows tip), it is a tip that can come in handy for those Word users who only want (or need) to use the keyboard.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip applies to Microsoft Word 2007 and 2010.
Được tạo bởi Blogger.

Tìm Kiếm

diaocphatdat