

When asked if you want to export the module before removing it, click on No.The actual wording of the option will include the name of the module you want to remove, such as Remove Module1. Choose the Remove option from the Context menu.(Remember that macros are stored in modules, and that you should only right-click on a module that is associated with the workbook that you want to cleanse.) Excel displays a Context menu.

In the Project Explorer (upper-left corner of the Editor), right-click on a module that you want to delete.Press Alt+F11 to display the VBA Editor.The second approach is to simply work with the existing workbook, and is a viable choice if you feel comfortable with macros in the first place. Your worksheets have now been moved to a new workbook-one that does not have any macros attached to it. Rehide any worksheets you unhid in step 1.Make sure the Create Copy check box is not selected.Using the To Book drop-down list, choose (new book).Excel displays the Move or Copy dialog box. Choose Move or Copy from the Context menu.

