Vba Active Workbook Save And Close. .some actions, save in a format and then close or to open a workbook and display information." - those are all serperate tasks, which are quite easily to obtain Also if you want to learn more or need to know more generally in VBA I would recommend Siddharth Rout's site, he has lots of tutorials and. You could put a button or some other trigger on your worksheets to initiate the macro so that it's easier for your users to access the macro.
.some actions, save in a format and then close or to open a workbook and display information." - those are all serperate tasks, which are quite easily to obtain Also if you want to learn more or need to know more generally in VBA I would recommend Siddharth Rout's site, he has lots of tutorials and. When working directly in Excel, you use the Save As The following piece of VBA code saves the current active workbook with a new name provided by. This is the only command in the macro that saves a file.
The Close and Open method in VBA can be used to close and open workbooks.
It is a good idea to check a workbook actually exists Using ActiveWorkbook also makes the code hard to read.
Closes the active workbook without saving changes. Close(SaveChanges, Filename Otherwise, VBA makes assumptions that can get you in trouble. Instructions to Install VBA to Save Workbook with No Prompt.