Excel Workbook_Open Sub Not Running on Open? Troubleshoot Now!

If your Workbook_Open sub is not running when you open your Excel workbook, there are a few steps you can take to troubleshoot the issue. This problem can occur due to a variety of reasons, such as incorrect macro settings, issues with your workbook file, or problems with your Visual Basic Editor (VBE).

Índice
  1. Step 1: Check Macro Security Settings
  2. Step 2: Check Your Workbook File
  3. Step 3: Check Your VBE Settings

Step 1: Check Macro Security Settings

The first thing you should do is check your macro security settings. If your macro security settings are set to high, then your Workbook_Open sub may not be running. To check your macro security settings:

  1. Click on the File tab in Excel.
  2. Select Options from the menu.
  3. Click on Trust Center in the left sidebar.
  4. Click on Trust Center Settings.
  5. Select Macro Settings.
  6. Make sure that the Disable all macros with notification option is selected.
  7. Click OK to save your changes.

Step 2: Check Your Workbook File

If your macro security settings are not the issue, then the problem may be with your workbook file. Try creating a new workbook and copying your code over to see if that resolves the issue. You can also try repairing your workbook file by following these steps:

  1. Click on the File tab in Excel.
  2. Select Open from the menu.
  3. Click on the small arrow next to the Open button.
  4. Select Open and Repair.
  5. Choose the Repair option.
  6. Click OK to start the repair process.

Step 3: Check Your VBE Settings

If neither of the previous steps solve the issue, then the problem may be with your Visual Basic Editor (VBE) settings. Try resetting your VBE settings by following these steps:

  1. Close all open Excel workbooks.
  2. Open the Run dialog box by pressing the Windows key + R.
  3. Type excel /safe in the dialog box.
  4. Press Enter.
  5. Open your workbook.
  6. Open the VBE by pressing Alt + F11.
  7. Click on Tools in the menu bar.
  8. Select Options.
  9. Click on the General tab.
  10. Click Reset in the Reset Settings section.
  11. Restart Excel.

By following these steps, you should be able to troubleshoot and fix the issue with your Workbook_Open sub not running when you open your Excel workbook.

Click to rate this post!
[Total: 0 Average: 0]

Related posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Go up

Below we inform you of the use we make of the data we collect while browsing our pages. You can change your preferences at any time by accessing the link to the Privacy Area that you will find at the bottom of our main page. More Information