TOC

P

Paula

Hi
I have set my word output to have section numbering i.e. 1-1, 1-2, 1-3 etc.

The TOC2 have the page numbering right aligned which is great.

But I want the TOC1 title to show up, but NOT the page number. Does anyone
know how I turn just the TOC1 page numbering off?
many thanks, Paula
 
S

Stefan Blom

Press Alt+F9 to show field codes. You'll see something like this instead of
your TOC:

{ TOC \o "1-3" \h \z \u }

Add \n "1-1" to the end of the field code, press F9 to update, and then
press Alt+F9 again to hide field codes.
 
P

Paula

thank you Stefan, worked beautifully.

Now my next question is I want to add this in as an automatic AfterPublish
macro. When I publish my content into a .dot template I want it to go and do
this automatically.

I did manage to record a macro that does this, but it did not work I think
because it does not know where to put the field code.

thanks, Paula
 
S

Stefan Blom

You may want to ask in a programming newsgroup such as
microsoft.public.word.vba.general for assistance with that. However, I'm not
sure why you are trying to add to a *template* file? Note that you can
simply add a TOC to a template; the TOC will then be present in all
documents later created from that template.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top