Update: Turning off Compile on Demand does not seem to help with this crash. Also, this problem seems to be affecting both 32-bit and 64-bit Excel.
Simple Visual Basic application crashes Excel with VBA7.1\vbe7.dll faulting module
When using a VISA-COM library 5.13 of from Keysight IO Libraries Suite in a VBA program, Excel crashes and closes.
The crash seems to occur with only a certain version of Excel released recently.
September 14: Version 2108 (Build 14326.20404) crash does not occur
September 28: Version 2109 (Build 14430.20234) crash occurs
In 1 out of 4 cases, the event improved with the version upgrade of Excel on October 12th.
October 12: Version 2109 (Build 14430.20298)
Checked the VISA-COM library and there are no errors in that library.
The VBA version should be 7.1.
Windows Event Viewer - Application.evtx shows an Excel application error:
Faulting application name: EXCEL.EXE, version: 16.0.14527.20226, time stamp: 0x617358db
Faulting module name: VBE7.DLL, version: 0.0.0.0, time stamp: 0x612d1ff0
Exception code: 0xc0000005
Fault offset: 0x000xxx
Faulting process id: 0x5e0
Faulting application start time: 0x01d7cebcxxxx
Faulting application path: C:\Program Files (x86)\Microsoft Office\Root\Office16\EXCEL.EXE
Faulting module path: C:\Program Files (x86)\Common Files\Microsoft Shared\VBA\VBA7.1\VBE7.DLL
Report Id: 5bece173-xxxx-4675-b0d3-3eexxxxxxxx
Faulting package full name:
Faulting package-relative application ID:
Event Name: APPCRASH
Response: 使用不可
Cab Id: 0
Problem signature:
P1: EXCEL.EXE
P2: 16.0.14527.20226
P3: 617358db
P4: VBE7.DLL
P5: 0.0.0.0
P6: 612d1ff0
P7: c0000005
P8: 000caa4a
P9:
P10:
Attached files:
\?\D:\Users\Morio\Documents\tmp\20211101-VisaComExcel\FMIO-01.xlsm
\?\C:\Users\Morio\AppData\Local\Temp{5F0FB6B6-1BA5-437E-A82F-3FC60771800E} - OProcSessId.dat
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERxxx.tmp.WERInternalMetadata.xml
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERxxx8.tmp.xml
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERxxx8.tmp.csv
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERxxx7.tmp.txt
These files may be available here:
\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_EXCEL.EXE_66b6ff9f3bexxxxxxxxxxxx_00000000_39xxxxx81-4f0f-bb09-fxxxxxx
Analysis symbol:
Rechecking for solution: 0
Report Id: 5bece173-d178-4675-b0d3-xxxxxxxxx
Report Status: 268435456
Hashed bucket: a316a20440dfe77axxxxxxxx
Cab Guid: 0
- These crashes seem to be occurring in Excel with possibly Japanese regional language settings. Have others seen these vbe7.dll related crashes?
- Any ideas on how to troubleshoot further?
- I find it difficult to get these exact Excel version installers, do you have any suggestions on how to get these so that I can replicate the crash on the same version of Excel?
- I found a thread suggesting to turn off the Compile on Demand and I'm trying to track down the bit-ness of these Excel's to see if they are all 32-bit or 64-bit?
7 answers
Sort by: Most helpful
-
-
Vicnesh Nathan 1 Reputation point
2021-11-23T20:27:48.83+00:00 Able to replicate the issue on my work computer now after our IT updated our MS Office on 11/17/2021. But going through the VBA program and stepping through the VISA-COM Library initialization, methods and close, it works as expected.
The problem is when VBA exits a subroutine and has to garbage collect any unused objects and return back to the Excel spreadsheet.
Here is a video of my observation: https://drive.google.com/file/d/1sCGzJfUkPqP2mRLrpPeIQQPCdPZeDfC_/view?usp=sharing
-
Vicnesh Nathan 1 Reputation point
2021-11-24T18:08:08.65+00:00 - Managed to resolve the issue by uninstalling MS Office 365 the second time around from Programs and Features.
- Going to my companies IT provided MS Office 365 portal (URL was something portal.office.com and logged in with my work email).
- Clicking on the Install Office button and downloading a OfficeSetup.exe
- Running the .exe to reinstall MS Office 365 applications with Administrator privileges
- Reboot
- Launch my Excel program with the VBA code referencing VISA-COM Library 5.12 and ran it without the crash anymore.
So the bug looks to be happening when the MS Office 365 was updated and it basically breaks the Exit Sub process when objects in the VBA program are supposed to be Garbage Collected.
-
Vladimir Pucek 1 Reputation point
2021-11-30T09:53:36.9+00:00 Hello MS team,
I have still the same problem with MS Excel and GPIB communication via VISA-COM Library after the reinstalling MS Office 365 64-bit from portal.office.com.
Could you support us?thanks
Vladimir Pucek -
Enrico Coscelli 1 Reputation point
2021-11-30T10:31:20.167+00:00 Dear MS Team,
I'm experiencing the same issue starting from version 2109 (build 14430.20342, 32 bit). Un-installing and re-installing up-to-date version 2111 didn't solve the problem.
Can you support?Thanks.