Book

Suggestions


Enter your email address:

Delivered by FeedBurner


Home Page

Bloglines

1906
CelebrateStadium
2006


OfficeZealot

Scobleizer

TechRepublic

AskWoody

SpyJournal












Subscribe here
Add to 

My Yahoo!
This page is powered by Blogger. Isn't yours?

Host your Web site with PureHost!


eXTReMe Tracker
  Web http://www.klippert.com



  Wednesday, September 23, 2009 – Permalink –

Insert Page Numbers

Don't get framed


If you use Insert>Page Numbers to number your document, the character will be contained in a frame.

This can, sometimes, make formatting the Header or Footer difficult.

A more versatile solution is to use Insert>Field.
Look for PAGE and NUMPAGES.

See:
Word.MVPS.org:
How to control the page numbering in a Word document

"Page X of Y" gives wrong numbers

Texas A&M University:
Placing the page number correctly on a landscape page


There is, also, an excellent discussion about how Word handles numbering at the
Microsoft Word MVP FAQ Site




See all Topics

Labels: , ,


<Doug Klippert@ 3:44 AM

Comments: Post a Comment


  Friday, September 04, 2009 – Permalink –

Place Marker

If it's broke, fix it


To return to your last edit point, press Shift+F5. For instance, if you have copied and want to return to where you were in order to paste.

Press Shift+F5 again to go to up to the last three edit points, or a fourth time to return to where you started.

In Word 97 you could use this when you first open a document, to go straight back to where you last edited.

There was a change with 2000+ that broke this. The \PrevSel1 bookmark is destroyed when the document is saved.

The Word MVP site has a fix and some other interesting suggestions:

GoBack (Shift+F5) doesn't work in some newly-opened documents
Here are the bookmarks from ’97:
Predifined bookmarks



See all Topics

Labels: , , ,


<Doug Klippert@ 3:49 AM

Comments: Post a Comment


  Thursday, July 09, 2009 – Permalink –

Echo Document Data

Enter once — use again


Enter data in one place in a document and have it repeated elsewhere.

There comes the time when you need to enter a clients name at the beginning of a document and you know that it will be repeated again many other places.

Greg Maxey has collected a number of ways to make the task easier.


Repeating Data





See all Topics

Labels: , , ,


<Doug Klippert@ 3:55 AM

Comments: Post a Comment


  Thursday, March 12, 2009 – Permalink –

Insert>Fields

Tiny code snippets


Microsoft has included a number of code pieces that you can use without having to haul out the VBA editor. These codes handle such things as page numbers, Table of Contents, Merge data and more.

"Some 80-plus fields are built into Word that provide information about the file and the user; store, display, and manipulate reference information; and link the document to other applications - all without a bit of code."



Automate Word Documents with Minimal Code
By Cindy Meister


Cindy Meister is a Word MVP.

She also works with bobbin-lace. Here is a sample of a Honiton lace butterfly.


Also:

AddBalance.com:
Using { Fields } in Microsoft Word


GMayor.com
Formatting Word Fields with Switches


In 2007 you can use the =(Formula) field.
On the Insert tab look for Quick Parts:






See all Topics

Labels: , ,


<Doug Klippert@ 3:50 AM

Comments: Post a Comment


  Thursday, August 14, 2008 – Permalink –

Sequentially Number Documents

Budget0056.doc


Here's an example of how to use an external text file to record incremental numbering.

"Sometimes, when working on a project, you may want to save your documents in sequential order (for example, "0001", "0002", "0003", and so on).

If you wanted to do this manually, you would need to sort through your working directory for the latest file number before you could assign the next number to a new file.

Using this fairly straightforward Word macro, you can make creating sequenced files as easy as pressing a button."


LogicalExpressions.com:

Save sequential number docs
(Kevin Christy)


Also see:

Autonumber Invoices



See all Topics

Labels: , , , ,


<Doug Klippert@ 4:00 AM

Comments: Post a Comment


  Sunday, July 13, 2008 – Permalink –

AutoNumber Invoices

Creating sequentially numbered documents


Use an Autonew macro to add a sequential number to a document and save it with that number.


In the template from which you create the document, insert a bookmark named Order in the location where you want the sequential number to appear and create an AutoNew macro, as follows:


Sub AutoNew()
Order = System.PrivateProfileString("C:\Settings.Txt", "MacroSettings", "Order")
If Order = "" Then
Order = 1
Else
Order = Order + 1
End If
System.PrivateProfileString("C:\Settings.txt", "MacroSettings", "Order") = Order
ActiveDocument.Bookmarks("Order").Range.InsertBefore Format(Order, "00#")
ActiveDocument.SaveAs FileName:="path" & Format(Order, "00#")
End Sub



If you do not need to display the number in the document, but just want to save it with a sequential number, there is no need to create the bookmark in the template and you should then delete the second last line of the code.

Article contributed by Doug Robbins
Word MVP Site


Microsoft Knowledgebase:
Macro to Increment Invoice Number to New Form Document


WordTips:
Sequentially numbered Labels


Here's a further discussion including methods to create sequential ticket numbers:

Here's the PDF version:
Word Field Codes Revealed



See all Topics

Labels: , , ,


<Doug Klippert@ 2:09 AM

Comments: Post a Comment


  Sunday, March 02, 2008 – Permalink –

Index Concordance

Order!


Creating a Table of Contents can be easy if you use Styles. Word will automatically insert a TOC when you place the insertion point and then use Insert>Reference Index and Tables and choose Table of Contents.
(2007 – Reference Tab>Table of Contents group)

An Index or Concordance can be more difficult.

In a larger document, you may want the reader to be able to locate key words. You could go through the whole document and mark each word you want included, but there is an easier way.


  1. Make a list of the important words.
  2. Create a two-column table in a new document.
  3. In the first column, enter the word or phrase.
  4. In the second column, enter the index entry
    (If you need a sub-category, type the main entry followed by a colon (:) and then the sub category.)
  5. Save the file.



When it comes time to create the Index, place the insertion point, go to Insert>Reference Index and Tables. Choose Index and then AutoMark.
(2007 – Reference Tab>Index group)

Browse to the location of your Index file.

Word will now automatically use your list to mark the main document and insert an Index.

Also:

Word for Word:
An Index or a Concordance for Your Book?


Word MVPS.org:
How can I automatically generate an index in Word?


Microsoft KB:
How to create a table of contents and index with field codes in Word



See all Topics

Labels: , , , , ,


<Doug Klippert@ 7:38 AM

Comments: Post a Comment


  Sunday, February 10, 2008 – Permalink –

Merge to More than One Document

Custom content



In the Data Source, include a field for the type of letter the recipient requires.

In the Main merge document, enter IF fields, such as:

{IF {MERGEFIELD "LetterType"=1} {INCLUDETEXT "C:\\Project\\Letter1" \* MERGEFORMAT} ""}
{IF {MERGEFIELD "LetterType"=2} {INCLUDETEXT "C:\\Project\\Letter2" \* MERGEFORMAT} ""}



  • The curly brackets { } cannot be entered from the key board. Either use Insert>Field, or Ctrl+F9.
  • Word uses spaces in the If..Then..Else statement.
  • The last two quote marks "" are "empty" , so nothing will be entered.
  • Notice the \\ in the path statement. A path is not needed if the Main document is in the same folder as the letters.
  • To see the field codes, use Alt+F9 to toggle the view on and off.

Letters 1 and 2 can have completely different texts, formats and layouts. One can be an invitation to a sale, the other can be a dunning letter.
(To carry over different formatting, leave out the \* MERGEFORMAT switch)

After setting up the main document for mail merging, insert all of the fields you want to merge.

Copy the individual fields and paste them in the correct locations in Letter 1 and 2.

Go back to the main document and erase all of the text and fields EXCEPT for the IF statements.

Letters 1 and 2 do not have to be set up a merge docs, or connected to a data source. Their text will be inserted in the Main document depending on the field type.





See all Topics

Labels: , , ,


<Doug Klippert@ 7:32 AM

Comments: Post a Comment


  Saturday, July 28, 2007 – Permalink –

Continued

More to come



You can place the word "More" or "Continued" at the bottom of every page except the last one.
The field, for those of you who know how to use them is:

{ IF { PAGE } = { NUMPAGES } "" "more" }

You can't just type in the brackets, you must use Insert>Field or Ctrl+F9.

For step by step instructions, go to:
How to Control the Page Numbering in a Word Document on TechTrax


There is a more sophisticated formula on WordTips On Line

{ IF { PAGE } < { NUMPAGES } "Continued on page {={PAGE} + 1}" "Last Page"}


Also see the Word MVP site
How to control the page numbering in a Word document


Here's a previous reference to page numbers:
Don't get framed



See all Topics

Labels: ,


<Doug Klippert@ 6:51 AM

Comments: Post a Comment


  Saturday, April 21, 2007 – Permalink –

Numbers to Word

Cardinal numbers



Word can format numbers in several ways when they are represented by field codes. The DollarText field code is one choice.

Press Ctrl-F9 to insert a pair of field-code delimiters, which resemble boldface curly brackets {}. (The brackets can not be entered directly from the keyboard).

Between the field-code delimiters, enter = followed by the number. Then append the DollarText field switch. The result should look like this:

{ =34,582.13 \*DollarText \*Firstcap }

There are spaces in the field. Here is how it should be entered:

{space=34,582.13space\*DollarTextspace\*Firstcapspace}

Right-click on the field and choose Update Field. You should now see the number spelled out in words:

Thirty-four thousand five hundred eighty-two dollars and 13/100.

Word provides some other numeric field codes. Here are a few of the more useful ones:

{ =42 \*CardText } - forty-two
(Spell our page numbers with a fields like this { PAGE \*CardText \*Caps } )

{ =42 \*OrdText } - forty-second

{ =42 \*Ordinal } - 42nd

{ =42 \*ROMAN } - XLII

KB article:

How to Use DollarText to Convert Numbers to Cardinal Text - 173287

and:

Microsoft Word - General Switches for Field Codes

For Access see:
Access - Numbers to Words

To create Cardinal numbers in Excel see:
Excel - Numbers to Words



See all Topics

Labels:


<Doug Klippert@ 6:50 AM

Comments: Post a Comment


  Monday, March 05, 2007 – Permalink –

Click to Type

MacroButton



When you open a template for a Memo, Letter, or Fax, you will see a field like this:

[Click here and type Name]


When you click and type the field goes away.

Here's how to create on of your own.

  1. Place the Insertion point in the document where you want the field.

  2. Hit Ctrl+F9 to create field brackets {}.
    (they can not be just typed in)

  3. Between the brackets type:

    {MACROBUTTON NoMacro [Click here and type junk]}


  4. Press Alt+F9 and the field code will disappear.



For more information see The Word MVP site:
Using MacroButton fields.



See all Topics

Labels:


<Doug Klippert@ 7:05 AM

Comments: Post a Comment