You are visitor number ????? since 14 October 2004.
Go to Howard Kaikow's home page

Copyright © 1999 by Howard Kaikow. All rights reserved.
Date: 10 February 1999
From: Howard Kaikow <>
Subject: How to look at macro source code

It is sometimes necessary to examine the source code of a macro without allowing the macro to execute.

If a macro is not one of the macros that will automatically execute when you start Word or when you open/create a document, then all you need to do is attach the template to a document and examine the macro source code. If the template is a global add-in, e.g., the template is located in Word's Startup directory, then you will have to open that template directly.

If the macro to be examined is one of the automatic macros, or you are unsure of what macros are in a template, then you may use the following technique to examine the source of a macro:

  1. I recommend keeping around a template. You can create this as follows: is the minimal Normal template created when you first install Word. It has only default settings, but can be very useful.

  2. Make a copy of, let's call this
  3. Start Word.
  4. Create a new document based on the template.
  5. Suppose that there are some macros in, say, that you wish to examine, but are reluctant to allow the macros to execute. Use the Organizer in the Macro dialog to copy those macros to and then open the macros for viewing from

In order to view a macro: