Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Message Box if Attempting to Save over Master

Anyone know a code that will evaluate the filename before saving and
generate a message box?

If the filename says "master" and a person clicks save or does a save
as "Master", then it will bring up a message box, prompting users that
they are attempting to save over the Master.


Thanks.


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Message Box if Attempting to Save over Master

Use the beforeSave event to test the name of the workbook. Setting Cancel =
True will cancel the save.

--
Regards,
Tom Ogilvy

"sowetoddid " wrote in message
...
Anyone know a code that will evaluate the filename before saving and
generate a message box?

If the filename says "master" and a person clicks save or does a save
as "Master", then it will bring up a message box, prompting users that
they are attempting to save over the Master.


Thanks.


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Message Box if Attempting to Save over Master

The reason why I prefer a message box is because I would the message t
inform the user that they must press ctrl s to save. A different cod
has been linked to "ctrl s" and will save the file with the value
inputted in two of the cells.


Any ideas how to do it that way? What would be the actual code if
did it the way suggested above?


Thanks

--
Message posted from http://www.ExcelForum.com

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
Error message when attempting to set up an Excel workspace Chris Cullen Excel Discussion (Misc queries) 18 August 1st 09 04:48 PM
Attempting to save a file type blocked by registry policy setting Marc Marckwardt Excel Discussion (Misc queries) 5 November 29th 07 11:43 PM
Excel 2000 shuts down when attempting to save a file EPMMGR06 Excel Discussion (Misc queries) 0 June 18th 07 06:19 PM
Password prompt while attempting to save from website NC_Brownoat Excel Discussion (Misc queries) 0 January 12th 06 04:24 PM
"Frontpage " message appears on attempting to open excel stewart reid Excel Discussion (Misc queries) 1 September 14th 05 04:32 PM


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