Article ID: 285884 - Last Review: January 29, 2007 - Revision: 4.2 How to determine whether VBA is enabled for Office applicationsThis article was previously published under Q285884 On This PageINTRODUCTION
This article discusses how to determine whether Microsoft Visual Basic for Applications (VBA) is installed and enabled for Microsoft Office applications.
MORE INFORMATIONHow to determine whether VBA is installedTo determine whether VBA is installed, you can call the MsiQueryFeatureState function from the Microsoft Windows Installer API. The following code sample demonstrates how to do this.Note The code samples in this article were written by using Microsoft Visual Basic 6.0. How to determine whether VBA is enabledIf VBA is installed, it may be disabled. If one of the following DWORD registry keys exists and has a value that is greater than 0, VBA is disabled.
REFERENCES
For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
287567
(http://support.microsoft.com/kb/287567/
)
Considerations for disabling VBA in Office XP
282847
(http://support.microsoft.com/kb/282847/
)
Some Excel features are unavailable if you disable Visual Basic for Applications and run Excel
145679
(http://support.microsoft.com/kb/145679/
)
How to use the registry API to save and retrieve setting
| Article Translations
|
Back to the top
