Showing posts with label Fields. Show all posts
Showing posts with label Fields. Show all posts

Tuesday, October 03, 2017

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.

Here is a more sophisticated formula:

{ 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


See all Topics

Monday, June 05, 2017

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

Friday, March 24, 2017

Calculating Time

Using EditTime field

Word keeps track of the time you spend editing. You can use this to figure out how to bill your time.

Paul McFedries


See all Topics

Saturday, March 04, 2017

Overbar

So far to go

Here's how to inset an overbar or macron, Ā, in Word.

Overbar


See all Topics

Sunday, June 05, 2016

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

YouTube:
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

Friday, February 12, 2016

Custom Properties

Use your own


If you look at Properties on the File menu, you will see a number of entries. You can also create your own custom properties.

Click the Custom tab and add what you want.



To insert your own properties in a document, use Insert>Fields

  1. Choose Document Information in the list of Categories
  2. In the list of Field Names, choose DocProperty
  3. Click the Field Codes button
  4. Add the property name to the Field
  5. Click OK
  6. Click OK. Word to inserts the value.


Here's the "click path" for 2007:



Also: Word.Tips.Net:
Creating word custom doc properties from code


See all Topics

Friday, December 25, 2015

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-10 you can use the =(Formula) field.
On the Insert tab look for Quick Parts:




See all Topics

Friday, November 27, 2015

Page Numbers

A baker's dozen of ideas


Here is a collection of tips about how to display information in Headers and Footers.

Field codes are demonstrated. Remember that the brackets {} must be inserted with Ctrl+F9, not directly from the key board.

Here's one suggestion:

Display the word "more" at the bottom of every page except the last page.

Insert an "if" field into the footer.

The field in this case will be a compound entity that consists of two fields nested within a third field.

{ IF { PAGE } = { NUMPAGES } "" "more" }
  1. Position cursor where you want the field.
  2. Press Ctrl+F9 to insert the field braces.
  3. Type the field expression as it appears below, using Ctrl+F9 and arrow keys as needed to keep text within the various braces as you type.
    { IF { PAGE } = { NUMPAGES } "" "more" }
  4. Select the entire expression.
  5. Right-click the selection and choose Toggle Field Codes.
    (or use Alt+F9)
Headers and footers and page numbers


See all Topics

Sunday, April 26, 2015

Address Layout

Custom layout


When you use the Outlook as a source for addresses, you can customize the display to suit your own needs.

When you use the Insert Address button in the Envelopes and Labels dialog box it does not use the same format as the Insert Address button.

Here's the location to put the Address book on the Quick Access Toolbar in 2007-10:



Here's the work around:
Insert Address Button Does Not Use AddressLayout AutoText Entry

MacroButton; scroll down to Insert Address from Outlook.



Here are two sources with directions about how to reformat the AutoText entry: "AddressLayout".

Slipstick.com
Inserting Addresses into Microsoft Word Documents

Microsoft Knowlegebase:
HOW TO: Modify the Layout of an Address Book Entry


See all Topics

Monday, March 02, 2015

Word Ranges

Pre-defined locations



When entries are made in a document, Word creates a Story Range to identify what part of the document is being used. These ranges can be used in macros to search for items , change text, or other actions.

This macro, for instance, changes the text in just the header of the first section:

Sub HeaderFooterObject()
Dim MyText As String
MyHeaderText = "This would be your text"
With ActiveDocument.Sections(1)
.Headers(wdHeaderFooterPrimary).Range.Text = MyHeaderText
End With
End Sub

When you use Edit>Replace in Word, it does a fine job of locating all occurrences of the target in the body of the document or in the header or footer.

Something fails, however, when you record the action and try to run it as a macro. To make it work, you must loop through the built in ranges of a Word document.

The exercise is interesting if only for the exposure to the built in ranges such as:

  • wdCommentsStory
  • wdEndnotesStory
  • wdEvenPagesFooterStory
  • wdEvenPagesHeaderStory
  • wdFirstPageFooterStory
  • wdFirstPageHeaderStory
  • wdFootnotesStory
  • wdMainTextStory
  • wdPrimaryFooterStory
  • wdPrimaryHeaderStory

    and
  • wdTextFrameStory.
See this article for more information: Word.MVPS.org:
Find and replace with VBA
 

Also: Microsoft KB
VBA macro examples to insert text into a document


See all Topics