Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default identify 'save as' of the commandbar 'worksheet menu bar'

Hey,

in case of saving a worksheet the user should get a
message "Do you want to change the original
spreadsheet ?". But this advice should not raise when the
user wants to 'save as'.

Using the beforeSave-Event will capture both of the above
actions. But how to distinguish the actions 'save'
and 'save as' ?

Thanks for your hints
Manfred
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 132
Default identify 'save as' of the commandbar 'worksheet menu bar'

Hi Manfred;

Excell normally detects if changes have been made but in
some cases especailly if changes have been made using VBA
code it will not. You can control wether the user gets
prompted by using this line in you code.


ActiveWorkbook.Saved = False


If you set it to false they will get prompted no matter
what and if you set it to true then they will not.

Hope it helps,

Greg

-----Original Message-----
Hey,

in case of saving a worksheet the user should get a
message "Do you want to change the original
spreadsheet ?". But this advice should not raise when the
user wants to 'save as'.

Using the beforeSave-Event will capture both of the above
actions. But how to distinguish the actions 'save'
and 'save as' ?

Thanks for your hints
Manfred
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default identify 'save as' of the commandbar 'worksheet menu bar'

The SaveAsUI parameter of the WorkbookBeforeSave event passes True if the
Save As dialog will be displayed. See Help.

--
Jim Rech
Excel MVP
"Manfred" wrote in message
...
| Hey,
|
| in case of saving a worksheet the user should get a
| message "Do you want to change the original
| spreadsheet ?". But this advice should not raise when the
| user wants to 'save as'.
|
| Using the beforeSave-Event will capture both of the above
| actions. But how to distinguish the actions 'save'
| and 'save as' ?
|
| Thanks for your hints
| Manfred


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
Identify the windows just below the menu Luismo Excel Worksheet Functions 2 April 16th 10 06:08 PM
SAVE and SAVE AS options disappeared from the drop down FILE menu [email protected] Excel Discussion (Misc queries) 2 July 12th 07 09:14 AM
How to identify active Menu Bars Matz Excel Discussion (Misc queries) 3 August 6th 06 08:21 PM
Save & Save As features in file menu of Excel Blue Excel Discussion (Misc queries) 9 December 27th 04 08:49 PM
Add control to the Chart menu of "Chart Menu Bar" commandbar Andrew[_16_] Excel Programming 2 November 10th 03 08:22 AM


All times are GMT +1. The time now is 12:20 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"