Results 1 to 3 of 3

Thread: Word Macro

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2000
    Location
    Yate England
    Posts
    22

    Angry

    Guys sorry I know this is day one stuff but you know what they say an answer to a question is only easy if you know the answer!!!

    Does anybody know how to upate the value of a field within Word 97 from a Word 97 VB macro.

    Thanks

    Gibbo

    Gibbo

  2. #2
    Fanatic Member
    Join Date
    Oct 2000
    Location
    London
    Posts
    1,008

    Word Macro

    This will move to a USERNAME field and auto-update it:

    Code:
    Selection.GoTo What:=wdGoToField, Which:=wdGoToNext, Count:=1, Name:="USERNAME"
    Selection.Fields.Update
    Cheers,

    Paul.

    P.S. Record a few macros in Word to see how VBA works in Word.
    Not nearly so tired now...

    Haven't been around much so be gentle...

  3. #3
    Addicted Member
    Join Date
    Oct 2000
    Location
    Vienna/Austria
    Posts
    132
    Hi Gibbo !!!

    Another Way

    Code:
    'asuming you have to update field 1 of the field collection
    activedocument.fields(1).update
    
    'and (I don't think you can use this on all fields)
    
    activedocument.fields("Test").update
    -cu TheOnly



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width