Newbie Qs: Optimizing Stylesheet with Fields 
Author Message
 Newbie Qs: Optimizing Stylesheet with Fields

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



Sat, 02 Aug 2003 22:05:06 GMT  
 Newbie Qs: Optimizing Stylesheet with Fields

Quote:

> 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.

Never mind answering that, I found it in the end. However, I'm still trying
to find a way to get all the math to be dynamic on the cover page.

Elisa Francesca Roselli
Quadratec Software



Sun, 03 Aug 2003 01:28:20 GMT  
 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



Sun, 03 Aug 2003 06:13:29 GMT  
 Newbie Qs: Optimizing Stylesheet with Fields
Thanks very much for the references, which should prove just the starting point
I need. I also ordered the O'Reilly book on Word macros and will collect it
this weekend. There seems to be another big book out on Word 97 macros and VBA
published by Sybase I think, and if it looks like this is going to be my
destiny in earnest I'll invest in that one too.

Many thanks again,

Elisa Francesca Roselli
Quadratec Software

Quote:

> Before you go too far into this project,
> See:....



Mon, 04 Aug 2003 15:43:53 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Stylesheets Overwriting Stylesheets

2. Newbie - Access 97 - Full Name Field into 2 or three different fields

3. Newbie Update field in DB using AutoNumber field

4. Please help!!Convert text field to date field(newbie)

5. Newbie Update field in DB using AutoNumber field

6. Dynamically load css stylesheet ?

7. Response.Redirect + Netscape Browser + StyleSheets = Problem!

8. Referencing stylesheet props

9. objPopup and StyleSheets

10. change stylesheet thru code

11. Response.Redirect + Netscape Browser + StyleSheets = Problem!

12. stylesheets Object method RemoveRule/AddRule in VBScript

 

 
Powered by phpBB® Forum Software