workbook_deactivate

  1. M

    Workbook_Deactivate

    I have the following code in a module which is executed via a button in a worksheet which is supposed to return Excel to it's normal stateSub ExitTool() ActiveWorkbook.Close savechanges:=False End Sub Which executes the following in 'ThisWorkbook'Private Sub Workbook_Deactivate()...
  2. A

    Disabling and Enabling Specific Menu Items via VBA

    Excel Friends, I got this code to disable/enable Right Click on the Sheet Tab: Private Sub Workbook_Activate() Application.CommandBars("Ply").Enabled = False End Sub Private Sub Workbook_Deactivate() Application.CommandBars("Ply").Enabled = True End Sub It worked fine, but I got...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top