Message Box if Attempting to Save over Master

  • Thread starter Thread starter sowetoddid
  • Start date Start date
S

sowetoddid

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.
 
Use the beforeSave event to test the name of the workbook. Setting Cancel =
True will cancel the save.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top