MS Word Question

youngda

Board Regular
Joined
Jun 13, 2006
Messages
81
Although this is Mr Excel, I figure people can probably answer my question about using VBA with Word. I would like to create a document which, upon opening, asks the user for several inputs. The answers to each question will cause the document to add or subtract certain paragraphs of text within the document. Does anyone know what method I should use to insert the text? Are bookmarkst the way to go, or is there some other way of putting in flags in the document so that the VBA knows to put a paragraph in certain spot. Your guys' help is always appreciated,

David
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
You've probably got your answer already....

I've done this for a number of templates. Law firms are big on stuff like this for boilerplate disclosure, agreements and indentures.

Bookmarks is the way to go. Also populating the document with key words (like client name/address/etc...). Could also use styles and styleref field code.

There are a number of ways to do this, and one method might not be particularly better than another.

I've also done this where the template builds off the fly from separate Word documents. Did this because everyone at the firm was clueless about how to use Word and could not grasp the template/bookmark concept. I didn't want to perform maintenance forever. Much easier for me to program Word to create documents off the fly from separate "source" Word documents. Then the firm could just change the text in a "source" file and not have to worry about styles, bookmarks, etc....
 
Upvote 0

Forum statistics

Threads
1,225,311
Messages
6,184,206
Members
453,221
Latest member
krish23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top