how to type non-printable text

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When printing a Word 2003 document with a Table of Contents, the user is
prompted, "Word is updating the table of contents. Select one of the
following options." I would like to include a notation in the document
explaining to the user what to do but I do not want the notation to print out.
 
You may find it easier to intercept the FilePrint command with a macro that
updates the tables of contents before printing. That way, users wouldn't need
any instructions at all.

For example:

Sub FilePrint()
Dim toc As TableOfContents
For Each toc In ActiveDocument.TablesOfContents
toc.Update
Next toc
Dialogs(wdDialogFilePrint).Show


End Sub

Sub FilePrintDefault()
Dim toc As TableOfContents
For Each toc In ActiveDocument.TablesOfContents
toc.Update
Next toc
ActiveDocument.PrintOut
End Sub

Store the macros in an add-in, and install it on each user's machine.

For more, see http://www.gmayor.com/installing_macro.htm.
 
That worked great. Thank you!

Stefan Blom said:
You may find it easier to intercept the FilePrint command with a macro that
updates the tables of contents before printing. That way, users wouldn't need
any instructions at all.

For example:

Sub FilePrint()
Dim toc As TableOfContents
For Each toc In ActiveDocument.TablesOfContents
toc.Update
Next toc
Dialogs(wdDialogFilePrint).Show


End Sub

Sub FilePrintDefault()
Dim toc As TableOfContents
For Each toc In ActiveDocument.TablesOfContents
toc.Update
Next toc
ActiveDocument.PrintOut
End Sub

Store the macros in an add-in, and install it on each user's machine.

For more, see http://www.gmayor.com/installing_macro.htm.
 
Stefan, I have been using this for awhile and it sure is GREAT!!! Not only
does it prevent any confusion amoung the beginner users, it also saves time.
Again, thank you for your time in solving this problem for me.
 
I'm glad you found it useful--and thanks again for the feedback. :-)

--
Stefan Blom
Microsoft Word MVP


in message
 

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

Back
Top