I have an Excel workbook that causes an error when it is started on a particular PC. No other workbooks give the same error on this PC, and the workbook itself causes no problems on any other PC. The error is:
Microsoft Visual Basic for Applications
This action will reset your project, proceed anyway?
It makes no difference which button is then clicked, the error just loops, and the only way I have found to break out of it is to use the Task Manager to end the Excel application.
The workbook is 'trusted' and macros are started automatically. If I switch this off then the file can be opened, but as soon as macros are enabled the error occurs as before.
So far I have tried de-activating all add-ins one by one, and varying the trust levels, but cannot open the workbook with macros enabled.
It is obviously the combination of the workbook and the PC that is the problem, and I suspect that it is some setting within the Excel application on the PC that is to blame. Does anyone have any ideas?
Thanks, Kevin
F9
) and run it. Now you're in debug mode, stopped on that line. Go open the troublesome file. Any macros that fire automatically won't this time because you're in debug mode. Go look for the problem / add stops in that code / do whatever to debug.