Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BeforeSave: how to distinguish "Save" from "SaveAs" in Excel

Status
Not open for further replies.

jmi44

Programmer
Nov 5, 2004
11
CH
While in Workbook_BeforeSave, is there a way to tell whether the user saves the workbook (via menu File->Save or via the Save button) or whether she uses the menu File->Save As?

I need to execute some actions before the workbook is saved, and these actions depend on the save mode used.
 
The [tt]WorkbookBeforeSave()[/tt] event has a [tt]SaveAsUi[/tt] flag that will tell you if the user is doing a Save or SaveAs (Excel '03).

Hope this helps,
CMP

I am sorry I have not succeeded in answering all of your questions.
In fact, I apologize for not completely answering any of them.
The answers I have however do serve to raise a whole new set of questions I had not previously thought of. In some ways, I am as confused as you are but I believe my confusions are (as always) on a higher plane and
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top