Microsoft KB Archive/831319

= Visio2002: &quot;Visio Failed to Initialize VBA&quot; Error Message =

Article ID: 831319

Article Last Modified on 7/27/2006

-

APPLIES TO


 * Microsoft Visio 2002 Standard Edition
 * Microsoft Visio 2002 Professional Edition

-





SYMPTOMS
In Microsoft Visio 2002, when you have a Visio drawing open and then you try to start Visual Basic Editor (on the Tools menu, point to Macros, and then click Visual Basic Editor), you receive the following error message:

Visio failed to initialize VBA. You can continue running Visio.

Choose OK to continue.

When this behavior occurs, the Visual Basic Editor stops responding. Visual Basic Editor is no longer displayed.



CAUSE
This behavior may be caused by a conflicting program that was running in the background when you installed Visio 2002.



RESOLUTION
To resolve this behavior, follow these steps:  Quit all background programs that are running, especially antivirus programs. Start Visio 2002. On the Help menu, click Detect and Repair. Click to select the Discard my customized settings and restore default settings check box, and then click OK. After the detect and repair process is complete, restart your computer. Start Visio with the /r switch. To do so, follow these steps: <ol style="list-style-type: lower-alpha;"> Click Start, and then click Run.</li> Click Browse.</li> Locate the Visio.exe file, and then click the Visio.exe file. By default, the Visio.exe file is located in the following folder:

C:\Program Files\Microsoft Office\Visio10

</li> Click Open.

Note Make sure that the path in the Open box is enclosed in quotation marks.</li> In the Open box, put the insertion point at the end of the path statement (to the right of the closing quotation mark).</li> Type a space, followed by the /r switch. The command looks similar to the following:

&quot;C:\Program Files\Microsoft Office\Visio10\Visio.exe&quot; /r

</li> Click OK.</li></ol> </li> Open any drawing, and then start Visual Basic Editor.</li></ol>

<div class="moreinformation_section">

MORE INFORMATION
For additional information about Visio command-line switches, click the following article number to view the article in the Microsoft Knowledge Base:

314392 Visio2002: Visio Startup (Command-Line) Switches and Their Purpose

Additional query words: VBA

Keywords: kbprb KB831319

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.