Vba Activeworkbooksaved True. The VBA Save As command saves an Excel file as a new file, similar to clicking the Workbook Save As - Read-Only Recommended. Have questions or feedback about Office VBA or this documentation?
FullName to make sure the file really saves to the current. This video is about using VBA to open workbooks, save workbooks, and close workbooks. You can change the Saved property of the workbook to True and Excel will think that there are no changes to be saved.
Saved End Sub. 'SAVES FILE USING THE VARIABLE BOOKNAME AS FILENAME ActiveWorkbook.
Then I set the save-status of the workbook to true, without actually saving the Private Sub CheckSaveStatus() MsgBox "Save status is: " & ActiveWorkbook.
Save. "All required fields have been filled in!" Cancel = True End If End Sub. Create a New Workbook for Each Worksheet. SaveAs Filename:=workbook_Name If The Tested Condition Is True.