Save All Open Workbooks and Re-open them using VBA
Use SaveWorkspace method to save the current workspace and use the Open method to open the files again
Sub WorkPlace_Save_And_Resume()
' Save Workspace
Application.DisplayAlerts = False
Application.SaveWorkspace "C:\New Folder\TempWorkSpace.XLW"
Workbooks.Close
' Do my work here without anyother workbooks
Workbooks.Open "C:\New Folder\TempWorkSpace.XLW"
Application.DisplayAlerts = True
End Sub
The files in the application will be saved and re-opened using Open method
See also :
Excel VBA - 1004 -- The file could not be accessed
Save and Reopen all Workbooks (Excel VBA)
Save copy of the workbook
SaveAs Dialog - Controlled Save
Save RTF document as word
Showing posts with label Openworkspace Excel VBA. Show all posts
Showing posts with label Openworkspace Excel VBA. Show all posts
Sunday, March 02, 2008
Subscribe to:
Posts (Atom)
Download Windows Live Toolbar and personalize your Web experience! Add custom buttons to get the information you care about most.