When you try to create or open a Visual Studio Tools for Office (VSTO) Excel or Word Document-level project, you receive an error message that resembles one of the following:
The project cannot be created
Excel/Word Designer cannot be activated
There was an update to VBA that broke compatibility in VSTO Document-level scenarios. You will encounter this problem if you are using that version of VBA. To determine whether this is the cause of your problem, check the version of VBE7.dll to see whether it is 7.01.1056 (the full path is specified in the "More Information" section).
A fix for this issue is included in Office 2016 Click-to-Run build 7823.1000 and later versions. This includes VBE7.dll version 7.01.1060 or later.
This fix is currently not available if you are using a version of Office 2013 or Office 2016 that was installed by the MSI installer. To fix this issue on one of these versions, use the following workaround.
To work around this issue, copy the VBE7.dll file from an Office 2016 Click-To-Run installation that has the fix into the installation path. To do this, use the following procedures for the source computer (with Office 2016 Click-To-Run with the fix) and the target computer (your dev computer).
On the source computer:
- Install Office 2016 Click-To-Run build. If you don’t have access to a license for Office 365, you can use a trial version from https://products.office.com/en-us/try at no cost.
- Make sure that your version of Office is 7823.1000 or later. You can check this by going to File -> Account. If you are not running version 7823.1000 or later, you must opt in to obtain Office insider builds and update Office before you continue. See the Office Insider section.
- Copy file VBE7.dll. This file is typically in the installation location, as follows:
- For 64-bit Office installations: %ProgramFiles%\Microsoft Office\root\vfs\ProgramFilesCommonX64\Microsoft Shared\VBA\VBA7.1\VBE7.DLL
- For 32-bit Office installations on 64-bit OS: %ProgramFiles(x86)%\Microsoft Office\root\vfs\ProgramFilesCommonX86\Microsoft Shared\VBA\VBA7.1\VBE7.DLL
- For 32-bit Office installations on 32-bit OS: %ProgramFiles%\Microsoft Office\root\vfs\ProgramFilesCommonX86\Microsoft Shared\VBA\VBA7.1\VBE7.DLL
On the target computer:
Paste the file from the source computer to the installation path (replace the file), typically in the following location.
For Office 2013 or 2016 MSI installations:
- For 64-bit Office installations: %Program Files%\Common Files\Microsoft Shared\VBA\VBA7.1\VBE7.DLL
- For 32-bit Office installations on 64-bit OS: %ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA7.1\VBE7.DLL
- For 32-bit Office installations on 32-bit OS: %ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA7.1\VBE7.DLL
For Office 2013 Click-To-Run installations:
- For 64-bit Office installations: %ProgramFiles%\Microsoft Office 15\root\vfs\ProgramFilesCommonX64\Microsoft Shared\VBA\VBA7.1\VBE7.DLL
- For 32-bit Office installations on 64-bit OS: %ProgramFiles%\Microsoft Office 15\root\vfs\ProgramFilesCommonX86\Microsoft Shared\VBA\VBA7.1\VBE7.DLL
- For 32-bit Office installations on 32-bit OS: %ProgramFiles%\Microsoft Office 15\root\vfs\ProgramFilesCommonX86\Microsoft Shared\VBA\VBA7.1\VBE7.DLL
If your Office version is not 7823.1000 or later after you install and update the Office 2016 Click-To-Run installation, the update may still be available only for Office insiders. In this situation, you must opt in as an Office insider and then update the source computer so that it's running Office 7823.1000 or later. For detailed instructions about how to become an Office insider, see https://products.office.com/en-us/office-insider.
Office 365 Home, Personal, and University subscribers (including if you signed up for a free trial):
The easiest way to opt in as an Office Insider is to use an Office 365 Home, Personal, or University subscription. In this situation, when you click File -> Account in an Office product, you'll see an “Office Insider” tile. You can click that, select Get early access to new releases of Office, and then click OK. You can make sure that you’ll obtain the latest build if you select the Insider Fast level. As soon as you’ve opted in, you can update Office to obtain the latest build.
For Office 365 Business, Enterprise, and Education subscribers:
Follow the instructions here in order to download and install by using the Office Deployment Tool. If you have problems updating to the latest version of Office by this method, we suggest you try the Office 365 Home, Personal, and University subscriber instructions, signing up for a free trial if necessary.
ID članka: 4014433 - posljednja izmjena: 8. ožu 2017. - verzija: 19