Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't access Excel VBA Code

Tags:

excel

vba

I have an Excel file with some VBA code. That code also includes a Form that is displayed on auto_open() call.

I never had problems opening VBA code form developers tab before. But now when I open that file it automatically calls the auto_open() (the form is displayed) and I can't access the code anymore. If I close the form the file is closed as well.

This problem started when I shut down Excel from the task manager because the VBA code was hanging. Since then I couldn't access the VBA for ANY other file containing forms loaded from auto_open().

NOTE: I already tried opening the file with the Shift key hold.

What is the problem? How can I access to the VBA macros as I used to do?

Thanks Miguel

like image 860
A. Miguel Avatar asked Feb 05 '26 01:02

A. Miguel


1 Answers

Here's the way I managed this:

Rather than double-clicking the file in Windows I did:

  1. Opened Excel
  2. File -> Open
  3. Browsed the file and hold the "shift" key while clicking on "Open". (continue holding it until the workbook finishes loading)
like image 198
A. Miguel Avatar answered Feb 06 '26 20:02

A. Miguel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!