Solution to "unable to initialize Visual basic environment" in Word [figure]

Source: Internet
Author: User

Some friends sometimes prompt "cannot initialize Visual basic environment" when opening a Word document, and cannot modify or save the document. In addition, opening the "Recording new macro" in the word may prompt "cannot initialize the visual basic environment" and cannot be operated. How can this be solved?

The error "cannot initialize the Visual basic environment" may be caused by vbe6.dll corruption or the high security of the macro setting. We can start with these two points.

Method 1. Repair the vbe6.dl file

A. Open "menu"-"run" and enter "cmd" to enter the command prompt interface;

B. Enter the command (one line of command and one carriage return)

Cd "C: Program FilesCommon Filesmicrosoft sharedVBAVBA6 & Prime;

Regsvr32/u vbe6.dll

C. After the command is successfully executed, open the C: Program FilesCommon Filesmicrosoft sharedVBAVBA6 folder, back up vbe6.dll to another disk, and delete it;

D. Download vbe6.dll and save it in the C: Program FilesCommon Filesmicrosoft sharedVBAVBA6 folder (which can be downloaded from Baidu );

E. Return to the command prompt interface and enter the command "regsvr32 vbe6.dll ".

Method 2: Open the Word document and adjust the Macro Command Security:

Word2003:

A. Click "tools"-"macro"-"security" in the menu bar ";

B. In the pop-up menu "security", the first option is "very high. Only macros installed in trusted locations can be run. All other signed and signed macros will be disabled ." You can try to lower it.

 

C. Go to "reliable publishers", delete all sources, and then cancel the two preceding check items, as shown in the following figure.

 

Word2010:

A. Click "file"-"option"-"Trust center"-"Trust center settings ";

B. Click "macro settings". Then you can set it in the right window by referring to the word2003 method.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.