Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / June 2005

Tip: Looking for answers? Try searching our database.

Applying Number formating AROUND text

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
blogan6@hotmail.com - 27 Jun 2005 15:07 GMT
I'm writing a macro to change the font/style/alignment of outline
numbered lists.  I think the best way to explain my problem is to show
an example.

Right now the lists look like this.

1.  Level 1 header

   Body text on level 1

   a)   Level 2 header

        Body text on level 2

When I apply my listTemplate, the body text paragraphs turn into
numbers too. Like this ...

1.  Level 1 header

2.  Body text on level 1

   a)   Level 2 header

   b)   Body text on level 2

The only way I've been able to get around this was to go through
listParagraph by listParagraph and apply the approprate style to each
outline level.  But this seems to turn my document from one with 5
separate lists to one with 1 big list.

Anyone know to update/keep the EXISTING numbering and not add anymore?

Thanks!
Chuck - 27 Jun 2005 16:36 GMT
Your "body text" paragraphs need to be in a separate, non-numbered style:

1.  Level 1 numbered style

    Body 1 indented non-numbered style

2.  Level 1 numbered style

    Body 1 indented non-numbered style:

    (a)  Level 2 numbered style

          Body 2 indented non-numbered style

    (b)  Level 2 numbered style

          Body 1 indented non-numbered style

and so forth.  Non-numbered styles between numbered styles don't affect the
numbering sequence.  It's helpful to assign hotkeys to the different styles.

> I'm writing a macro to change the font/style/alignment of outline
> numbered lists.  I think the best way to explain my problem is to show
[quoted text clipped - 29 lines]
>
> Thanks!
Jonathan West - 27 Jun 2005 16:42 GMT
Hi blogan,

You are running into the common problem known as spaghetti numbering. is is
a design flaw in Word.

For a deep & detailed explanation of the problem, go here

Word's numbering explained
http://www.word.mvps.org/FAQs/Numbering/WordsNumberingExplained.htm

For some suggestions as to how to get your document design sorted so that
the problem goes away, go here

Methods for restarting list numbering
http://www.word.mvps.org/FAQs/Numbering/ListRestartMethods.htm

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org

> I'm writing a macro to change the font/style/alignment of outline
> numbered lists.  I think the best way to explain my problem is to show
[quoted text clipped - 29 lines]
>
> Thanks!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.