smiley3141
Board Regular
- Joined
- Aug 13, 2010
- Messages
- 77
I am trying to create a macro that will fill out documents in Word 2003 (or Word 2007). I can do this for static documents, but am having trouble with variable documents.
What I mean by this is, my comprehensive template has 61 sections, but for any one case, only 20-30 of them are necessary, and these vary greatly from one time to the next. Also, depending on the particulars, the order in which the sections are printed might change. I have figured out the logic to get everything to print in the correct order, but where can I find help on translating that into VBA?
Also, each section title contains an ordinal ("First", "Seventh", "Thirty-First", etc.) while each section contains paragraphs numbered something like ("7.1.2."). Is there some way to create a Macro in Word that will automatically number the sections and paragraphs correctly? Right now I am thinking of creating a v-lookup table in Excel and having the Word Macro reference this Table to figure out what the next Ordinal, or Paragraph number is. Does this sound like a good way to proceed, or is there a simpler (more direct) way in Word?
I appreciate any help, or references anyone can give me to help me solve this problem.
What I mean by this is, my comprehensive template has 61 sections, but for any one case, only 20-30 of them are necessary, and these vary greatly from one time to the next. Also, depending on the particulars, the order in which the sections are printed might change. I have figured out the logic to get everything to print in the correct order, but where can I find help on translating that into VBA?
Also, each section title contains an ordinal ("First", "Seventh", "Thirty-First", etc.) while each section contains paragraphs numbered something like ("7.1.2."). Is there some way to create a Macro in Word that will automatically number the sections and paragraphs correctly? Right now I am thinking of creating a v-lookup table in Excel and having the Word Macro reference this Table to figure out what the next Ordinal, or Paragraph number is. Does this sound like a good way to proceed, or is there a simpler (more direct) way in Word?
I appreciate any help, or references anyone can give me to help me solve this problem.