Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default SaveAs command

Hello,
Is there a way to know in beforeSave Event what the you choose in the SaveAs
menu?
I mean whether he chooses Excel workbook, Excel workbook with macro or Binary


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default SaveAs command

On Apr 26, 12:56*pm, Raja wrote:
Hello,
Is there a way to know in beforeSave Event what the you choose in the SaveAs
menu?
*I mean whether he chooses Excel workbook, Excel workbook with macro or Binary


Raja - not sure what you are trying to do, but there is a ThisWorkbook
event:

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

End Sub

That might do what you want to do...
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default SaveAs command

In this event I check the flag SaveAsUI to know whether the user choose Save
or SaveAS command. but the problem is that there are more that one SaveAs
command.
the use can choose Save As Binary file, or Save As xlsx Workbook xlsx or
xlsm Workbook.
So Is there a way to know that?

" wrote:

On Apr 26, 12:56 pm, Raja wrote:
Hello,
Is there a way to know in beforeSave Event what the you choose in the SaveAs
menu?
I mean whether he chooses Excel workbook, Excel workbook with macro or Binary


Raja - not sure what you are trying to do, but there is a ThisWorkbook
event:

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

End Sub

That might do what you want to do...

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
SaveAs command doesn't save extension stewart Excel Programming 4 April 9th 07 01:49 AM
disable save and saveas from menubar and save via command button Steve E Excel Programming 5 September 13th 06 11:51 PM
SaveAs command when a file already exists? debartsa Excel Programming 2 January 5th 04 04:12 PM


All times are GMT +1. The time now is 03:14 PM.

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"