Communicating with the User

Many times it's useful to give some information to the user while your macro is running. You might want to inform the user of the progress of a long macro, or tell him or her that the macro found a problem in the document. You can use a message box to present such messages to the user.

Besides telling the user something, you might want to ask a question. It might be as simple as whether or not the user wants to continue with a long process, or what name the user wants to put in the signature block of a letter.

As you will see in the next couple of sections, you can use both message boxes and input boxes to ask these simple questions. For more complex data input, you can design custom dialog boxes, also known as forms ...

Get Special Edition Using Microsoft® Word 2000 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.