
Newbie Qs: Optimizing Stylesheet with Fields
Before you go too far into this project,
See:
Word's Numbering Explained
http://www.mvps.org/word/FAQs/Numbering/WordsNumberingExplained.htm
How to Create a Template, 2
http://www.mvps.org/word/FAQs/Customization/CreateATemplatePart2.htm
This has a template with a very robust numbering scheme.
You will be working with mostly with bookmarks and fields here.
Take a look at the references found at:
http://www.addbalance.com/word/wordwebresources.htm#Fields and
http://www.mvps.org/word/FAQs/index9.html
For information on cross-references and such, you might want to take a look
at:
http://www.addbalance.com/usersguide/complex%20legal%20documents.htm
The field for showing information depending on style type is STYLEREF.
Some of what you want to do may require VBA as well.
See: http://www.mvps.org/word/FAQs/index5.html and especially the pages on
bookmarks.
You've got a large project ahead of you. Hope this helps.
--
Charles Kenyon
Word New User FAQ & Web Directory:
http://www.addbalance.com/word
Legal Users Guide (modified)
http://www.addbalance.com/usersguide
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
Quote:
> Hello,
> I'm in a new job which involves a much more intensive and in-depth use
> of Word than I've had to muster before. I have very little VBA
> programming or even macro experience.
> My first problem is to design a stylesheet for the certification exams
> my company gives to partners and software customers.
> The exams are divided into several modules, each of which has a varying
> number of questions. I have the module headings in the style Title 2,
> and the questions in the style Numbered List 1. First question: how can
> I get the Numbered List to reinitialize from 1 for each new module? I
> mean that, instead of having 72 questions numbered continuously, I would
> like the numbering to restart for each section headed with a Title 2, so
> that Module 1 might have ten questions numbered 1 to 10, Module 2 eight
> questions numbered 1 to 8, and so on? There must be a way to do this via
> the paragraph definitions in the Styles Window but I haven't found it.
> Next - the exams all have a cover sheet, listing each Module Title with
> the number of questions in the section, the total number of questions,
> and the number of questions out of the total needed to pass the
> certification (75%).
> How would I go about having that section generate itself automatically
> by retrieving and listing all text in Title 2 style, following each line
> with the number of questions in the section (hence, the number of the
> last element in Numbered List 1 style per section), then automatically
> generate a grand total from these numbers and calculate 75% of that?
> I've made some rudimentary expreiments using Bookmarks and Formula
> fields, but I find the field does not update itself atomatically when
> one of its component values is changed. Also as soon as I manually
> change the value of a bookmark the bookmark itself seems to be deleted.
> Perhaps these questions are too basic to demand so much as VBA
> programming, but I would be grateful for any guidance and hand-holding
> the group-members might have to offer.
> Many thanks,
> Elisa Francesca Roselli
> Quadratec Software