Excel stores macros in modules. If you delete a / all macros from a module, the module itself is not deleted. excel will send the 'enable macrs' alert when it detect a moidule, even if the module is empty.
So,
1) open the workbook
2) hit ALT + F11 to open the VBA editor
3) Find the entry for your workbook & select the 'Module' entry.
4) Delete the 'Module'
On 2002-09-29 18:53, brindha_shree wrote:
Thanks..
It works..But when i try to reopen the spreadsheet again, i keep getting the message either I want to enable/disable the macros....
Even though the macro has been deleted, reference to its preexistence, e.g. the module it was in remains and that is what VBA is referring to it.
To alleviate getting the undesirable message, you will have to remove the remnants of the macro via the the VBA project window ... e.g. you may have to delete the module in which the deleted macro once resided.
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.