Re: Using variables in a document

From: Bill (stanton_at_jps.net)
Date: 02/03/05


Date: Thu, 03 Feb 2005 00:06:23 GMT

Got it Greg, thanks again.
Bill

"Greg Maxey" <gmaxey@mvps.OscarRomeoGolf> wrote in message
news:upnwNYXCFHA.4036@TK2MSFTNGP15.phx.gbl...
> Bill,
>
> Yes. Here is my boiler plate answer to updating fields.
>
> When a change is made, you can update the field by selecting the field and
> pressing F9, or update all fields by pressing CTRL+a (selects all) and
> pressing F9, toggling to and from print preview (if "Update Fields" is
> checked in the File>Print>Options dialog box), or running a macro
> something like:
>
> Sub UpdateFields()
> Dim oStory As Range
> For Each oStory In ActiveDocument.StoryRanges
> oStory.Fields.Update
> If oStory.StoryType <> wdMainTextStory Then
> While Not (oStory.NextStoryRange Is Nothing)
> Set oStory = oStory.NextStoryRange
> oStory.Fields.Update
> Wend
> End If
> Next oStory
> Set oStory = Nothing
> End Sub
>
>
>
> --
> Greg Maxey/Word MVP
> A Peer in Peer to Peer Support
>
> Bill wrote:
>> I found Edit -> Select All -> PF9 that will update
>> all selected fields. Is that the answer to my last post?
>> Bill
>>
>>
>> "Bill" <stanton@jps.net> wrote in message
>> news:AfbMd.4851$cl1.905@newsread3.news.pas.earthlink.net...
>>> Thanks Greg, I thought that maybe bookmarks was
>>> the way it was done when I searched the HELP text,
>>> but the HELP text is really weak when it comes to
>>> examples of how they are used.
>>>
>>> Okay, so that works until the document expands with
>>> the addition of additional text/pages. When that happens,
>>> the reference becomes invalid. I.e., the referenced page
>>> does not get updated automatically as the document
>>> expands.
>>>
>>> Do I have to do something else?
>>> Bill
>>>
>>>
>>> "Greg" <gmaxey@mvps.org> wrote in message
>>> news:1107376466.601184.88050@l41g2000cwc.googlegroups.com...
>>>> Bill,
>>>>
>>>> You need to use a cross reference. Lots of ways to do it, but here
>>>> is one.
>>>>
>>>> Go to whatever page blah, blah is described and select the text. Then
>>>> Insert>Bookmark. Lets name the bookmark "Blah"
>>>>
>>>> Now go back to your text where you have See page. Put your cursor
>>>> after "page" then Insert>Cross Reference. Use Reference Type:
>>>> Bookmark
>>>> Insert Reference To: Page Number
>>>> Select Blah and click insert.
>
>



Relevant Pages

  • Re: NY OPMC Vetoes
    ... post suggesting that the governor was "threatening" to veto...and that ... Not really, Greg. ... "I have gotten for weeks that this bill would probably be vetoed". ... least of which was that this was a "Lyme" bill. ...
    (sci.med.diseases.lyme)
  • Re: Table relationship
    ... > There may be dozens of lines represented on one bill each month. ... >> If your primary key in Table1 is a 2-field composite key, ... >> Jeff Boyce ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Table relationship
    ... There may be dozens of lines represented on one bill each month. ... Greg ... > If your primary key in Table1 is a 2-field composite key, ... > Jeff Boyce ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Command Bars
    ... My mistake Greg. ... Bill ... Puts the bar in the upper ... >>> in the upper left hand corner of the worksheet. ...
    (microsoft.public.excel.programming)
  • Re: Using variables in a document
    ... pressing F9, or update all fields by pressing CTRL+a and ... For Each oStory In ActiveDocument.StoryRanges ... Bill wrote: ... When that happens,>> the reference becomes invalid. ...
    (microsoft.public.word.pagelayout)