Macro not working first time with old document

P

peterc

I am updating a word macro from 2000 to 2003.
The problem is about the table of contents macro. A macro insearts the table
of contents with specific tabstops. It first deletes existing tabstops and
then inserts new one's.
It works fine with new document based on the new macro in work 2003, but
documents made with the old word 2000-macro don't work properly the first
time you run it. If you run it another time right after the first (or update
the table of contents, ritht-click update) it works just fine.
It seems like if the tabstops.clearall doesn't work the first in the old
word- 2000 document.
Does anyone know why? How can I get the macro to work the first time I run
in an old document?
/peterc
 

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