ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Detecting Save vs SaveAs in BeforeSave (https://www.excelbanter.com/excel-programming/300191-detecting-save-vs-saveas-beforesave.html)

Aaron[_9_]

Detecting Save vs SaveAs in BeforeSave
 
Hi

Is it possible to determine the type of Save requested from a user i.e Whether it was 'Save' or 'SaveAs' in the BeforeSave event

Thanks
Aaron

Jim Rech

Detecting Save vs SaveAs in BeforeSave
 
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)

SaveAsUI is False in a Save and True with a SaveAs.

--
Jim Rech
Excel MVP
"Aaron" wrote in message
...
| Hi,
|
| Is it possible to determine the type of Save requested from a user i.e
Whether it was 'Save' or 'SaveAs' in the BeforeSave event.
|
| Thanks,
| Aaron



Aaron[_9_]

Detecting Save vs SaveAs in BeforeSave
 
Thanks

----- Jim Rech wrote: ----

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean

SaveAsUI is False in a Save and True with a SaveAs

--
Jim Rec
Excel MV
"Aaron" wrote in message
..
| Hi

| Is it possible to determine the type of Save requested from a user i.e
Whether it was 'Save' or 'SaveAs' in the BeforeSave event

| Thanks
| Aaron





All times are GMT +1. The time now is 04:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com