Vba Workbook Save As Xlsm. The most basic method to save Excel workbooks using VBA is the Workbook. With VBA, you can do a lot of stuff with a workbook object - such as open a specific workbook, save and close workbooks, create new workbooks Also, since the workbook contains the above macro, if it hasn't been saved as a.xlsm (or .xls) file, you will lose the macro when you open it next.
Find answers to Excel VBA save a xlsm file as xlsx from the expert community at Experts Exchange. You won't always need to specify the workbook, but it is a good habit to get into. Although it does currently function, there will be less.
Click Save to save the workbook with your VBA code in it.
This is used when you want to rename your workbook using excel VBA macro.
I know - that's the whole point. Obviously, you cannot save changes to a workbook that is currently open as read-only. In order to save the vba code in excel file you have to save the file in.