S
Sam
I am using Word 97.
I need to create a macro that creates a contents page.
Basically I will type the word 'Contents', right tab to
the right margin and type 'page'. Press return and then
to 'insert' 'table of contents'. I click on the options
box and make sure that every single style is deselected
and that the only style ticked is my 'section headings
style'. I then 'okay' this I end up with exactly what I
want.
The problem occurs when I play back the macro. Everything
is fine except it adds in loads of extra headings in my
TOC which didn't appear while recording. I can go into the
TOC options again and remove the ticks but it defeats the
point of trying to speed up the process with macros.
Does anyone know what I'm doing wrong?
Thank you
I need to create a macro that creates a contents page.
Basically I will type the word 'Contents', right tab to
the right margin and type 'page'. Press return and then
to 'insert' 'table of contents'. I click on the options
box and make sure that every single style is deselected
and that the only style ticked is my 'section headings
style'. I then 'okay' this I end up with exactly what I
want.
The problem occurs when I play back the macro. Everything
is fine except it adds in loads of extra headings in my
TOC which didn't appear while recording. I can go into the
TOC options again and remove the ticks but it defeats the
point of trying to speed up the process with macros.
Does anyone know what I'm doing wrong?
Thank you