If you had chosen This Workbook as the option for storing the macro, you would need to save your workbook along with the macro.
Try to save the workbook. By default, you would be asking Excel to save the workbook as an .xls file. Excel displays a message saying that an Excel feature VB project cannot be saved in a macro free workbook, as shown below.
Note: If you click Yes, Excel will save your workbook as a macro free .xls file and your macro that you stored with This Workbook option will not get saved. To avoid this, Excel provides you an option to save your workbook as a macro-enabled workbook that will have .xlsm extension.
• Click No in the warning message box.
• Select Excel Macro-Enabled Workbook (*.xlsm) in the Save as type.
• Click Save.
No comments:
Post a Comment