Microsoft small business knowledge base

Article ID: 831319 - Last Review: October 26, 2013 - Revision: 1.2

This article has been archived. It is offered "as is" and will no longer be updated.


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.


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


To resolve this behavior, follow these steps:
  1. Quit all background programs that are running, especially antivirus programs.
  2. Start Visio 2002.
  3. On the Help menu, click Detect and Repair.
  4. Click to select the Discard my customized settings and restore default settings check box, and then click OK.
  5. After the detect and repair process is complete, restart your computer.
  6. Start Visio with the /r switch. To do so, follow these steps:
    1. Click Start, and then click Run.
    2. Click Browse.
    3. 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
    4. Click Open.

      Note Make sure that the path in the Open box is enclosed in quotation marks.
    5. In the Open box, put the insertion point at the end of the path statement (to the right of the closing quotation mark).
    6. Type a space, followed by the /r switch. The command looks similar to the following:
      "C:\Program Files\Microsoft Office\Visio10\Visio.exe" /r
    7. Click OK.
  7. Open any drawing, and then start Visual Basic Editor.


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

  • Microsoft Visio 2002 Standard Edition
  • Microsoft Visio 2002 Professional Edition
kbnosurvey kbarchive kbprb KB831319
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support