View Single Post
 
Old 05-07-2018, 03:58 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by lipatin View Post
I know, but I dont want the macro to run as soon as I open the document. Have you looked at the document I have uploaded in the #6 thread of the posts called addpages.docm and understood what I want to achieve?
Of course I did. I fail to see how what you're asking for is fundamentally different in outcome, except that your approach doesn't allow the user to nominate the starting #.

The nearest you'll get to what you've described is with something like the attached. The macro runs after you input the number into the formfield, then tab out of it. To get the numbering to update, it is necessary for that part, at least, to be in the page header.
Attached Files
File Type: docm Addpages.docm (31.6 KB, 19 views)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote