View Single Post
 
Old 02-21-2013, 07:25 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

You code looks OK, though:
• you haven't declared your 'FormNumber' variable;
• "Order" should read "FormNumber";
• your code inserts the form number before the bookmark, rather than updating it, which means any cross-references to the bookmark also won't update to reflect the form number; and
• you may encounter permissions issues trying to write to C:\

For a different approach, see: https://www.msofficeforums.com/word/...iple-docs.html
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote