View Single Post
 
Old 04-08-2011, 06:45 PM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2000
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

Hi vishal,

There are various ways of doing this, requiring the use of either a userform of a series of formfields to determine what gets output. Userforms have the advantage of not being part of the actual document - they simply sit over it to provide an interface for whatever is being done to the document beneath. Form fields sit in the actual document, but can be put on a single page that perhaps doesn't get printed (or can be printed to confirm what choices were made).

As a rule, it's unsafe to simply delete 'unwanted' text as there's then no way of restoring it if the user changes their mind. Accordingly, it's preferable to either:
1. store the variable text in the macro itself, and update bookmarks in the document with/without the text; or
2. store the variable text in fields within the document, then toggle their output on/off via edits to custom document properties.

Clearly, there are some design issues you'll need to think about before you can go much further.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote