Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling SaveAs and Save? Petitboeuf Excel Discussion (Misc queries) 7 July 6th 06 05:40 PM
Save and Saveas Greyed out on tool bar and file menu Shareena Howley Setting up and Configuration of Excel 1 July 5th 05 01:02 PM
BeforeSave sub won't save another workbook when triggered by another event sub Brad Yundt Excel Programming 1 June 3rd 04 03:12 AM
using SaveAs to save 'only' one sheet from one book to a new file Randy W Excel Programming 2 January 12th 04 08:21 PM
VBA - BeforeSave - NEED HELP HRobertson Excel Programming 2 October 23rd 03 06:50 PM


All times are GMT +1. The time now is 03:23 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"