Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FP2000: Inserting Macro Creates a New Module


View products that this article applies to.

This article was previously published under Q219700

↑ Back to the top


Symptoms

When you type a name for a macro and click Create in the Macro dialog box, the Visual Basic Editor opens and creates a new module.

The default module name increments by one.

For example: If you currently have a module named Module1, a new module is created that is named Module2.

↑ Back to the top


Cause

A new module is created during each FrontPage session. No existing modules will be overwritten or modified by FrontPage.

↑ Back to the top


More information

When you insert a macro using this method, a new module is created. If you continue to add macros using this method, they will be added to the same module. However, if you close and restart FrontPage and create another macro, a new module will get created.

To work around this behavior, use the copy and paste technique to move code from the new module into an existing module, and then delete the new module.

↑ Back to the top


Keywords: KB219700, kbprb

↑ Back to the top

Article Info
Article ID : 219700
Revision : 1
Created on : 12/2/2000
Published on : 12/2/2000
Exists online : False
Views : 260