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.