OFF98: Displaying UserForm Designer Resets Global Variables (182594)
The information in this article applies to:
- Microsoft Office 98 Macintosh Edition
- Microsoft Excel 98 Macintosh Edition
- Microsoft Word 98 Macintosh Edition
- Microsoft PowerPoint 98 Macintosh Edition
This article was previously published under Q182594 SYMPTOMS
When you run a macro in a Visual Basic for Applications project, the value
for a global variable is reset to nothing (zero).
CAUSE
This problem occurs when the following conditions are true:
- The project includes a UserForm.
-and-
- The UserForm designer is open (the UserForm is in a window).
WORKAROUND
To resolve this problem and ensure that all global variables retain their
scope, close all UserForm windows before running a macro in a Visual Basic
project.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article.
REFERENCES
For more information about Scope of a variable, click the Office Assistant,
type Scope click Search, and then click to view "Understanding Scope and
Visibility."
NOTE: If the Assistant is hidden, click the Office Assistant button on the
Standard toolbar. If Microsoft Help is not installed on your computer,
please see the following article in the Microsoft Knowledge Base:
179216 OFF98: How to Use the Microsoft Office Installer Program
Modification Type: | Major | Last Reviewed: | 11/25/2003 |
---|
Keywords: | kbbug kbpending kbProgramming KB182594 |
---|
|