This article will tell you how to save an excel workbook manually, automatically, and use a VBA script. It will also tell you how to change the default excel workbook save location.
1. How To Save Excel Workbook Manually.
- Open the Excel workbook, and click the Save button on the top left corner of Excel to popup the Save this file dialog.
- You can also press Ctrl + S to open the Save this file dialog.
- Click the link More options… in the above dialog to go to the Save As window.
- You can also go to the Save As window by clicking the File —> Save As menu item.
- Then you can select where to save the excel workbook, you can save it to Microsoft OneDrive, This PC( the local computer), Add a Place( other places), Browse ( browse a network place to save the excel workbook).
2. How To Change Excel Workbook Default Save Directory.
- Click File —> Options to open the Excel Options dialog.
- Click the Save option item on the left.
- Check the checkbox Save to Computer by default.
- Input the default save location directory in the Default local file location input text box behind the above checkbox.
- Then when you save an excel workbook, it will be saved to the above default directory.
3. How To Save Excel Workbook In Different File Format.
- Click the File —> Save As menu item in excel.
- Double click any location item ( such as This PC ) in the middle location list to open the Save As popup dialog.
- Click the down arrow at the end of the Save as type drop-down list.
- It will show all the file formats that can be saved with the different file extensions.
- Choose one file format that meets your needs.
- Input a file name and click the Save button to save the excel workbook in that format.
4. How To Save Excel Workbook Automatically.
- If you want to save your excel workbook automatically, you can follow the below steps.
- Click File —> Options menu item to open the Excel Options pop-up dialog.
- Click the Save option item on the dialog left panel.
- Then check the Save AutoRecover information every checkbox.
- You can set the time interval to a smaller number value, the time interval unit is one minute.
- You should also check the checkbox Keep the last AutoRecovered version if I close without saving.
- You can change the AutoRecover file saved location in the AutoRecover file location input text box.
- Now your excel workbook will be saved to the AutoRecover file location periodically.
- If you use Office365 ( Microsoft Office online version ), there is a real-time saving feature.
- To enable it, you should check the checkbox AutoSave OneDrive and SharePoint Online files by default on Excel in the Excel Options dialog Save option panel.
5. How To Save Excel Workbook Using VBA Programmatically.
- You can also use VBA to save one Excel workbook to another Excel workbook.
- You can use the Excel workbook’s SaveAs function to do it. Below is the example source code.
' This function will save the current workbook as another excel file. Public Sub SaveExcelFileUseVBA() ' Get current excel workbook file name. workbookNname = ThisWorkbook.Name ' Get current date time stamp. saveTimeStamp = Format(Now, "ddmmmyyy-hhmmss") ' Invoke the current workbook's SaveAs function to copy current excel workbook to a new workbook. ' The new workbook name is time-stamp & current-workbook-name ThisWorkbook.SaveAs saveTimeStamp & workbookName End Sub