#1   Report Post  
 
Posts: n/a
Default Force save as

Is it possible to disable the save button and force a user
to use save as? Making the book read only is not an option
due to some calculation.

Thanks in advance
  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
not sure why read only is not an option for you. You still can perform
changes you just have to save it to a different name

--
Regards
Frank Kabel
Frankfurt, Germany

schrieb im Newsbeitrag
...
Is it possible to disable the save button and force a user
to use save as? Making the book read only is not an option
due to some calculation.

Thanks in advance


  #3   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

You can use this: of course, you will need to change the file name in the
code... Copy and paste into the ThisWorkbook object's codemodule.

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
If (Not SaveAsUI) And (ThisWorkbook.Name = "Book4.xls") Then
MsgBox "You must use ""Save As"" to save with another name."
Cancel = True
End If
End Sub

HTH,
Bernie
MS Excel MVP

wrote in message
...
Is it possible to disable the save button and force a user
to use save as? Making the book read only is not an option
due to some calculation.

Thanks in advance



  #4   Report Post  
 
Posts: n/a
Default

I have a count that needs to increment everytime the
workbook is opened. I considered using another workbbok
for the count, but would rather not.

-----Original Message-----
Hi
not sure why read only is not an option for you. You

still can perform
changes you just have to save it to a different name

--
Regards
Frank Kabel
Frankfurt, Germany

schrieb im

Newsbeitrag
...
Is it possible to disable the save button and force a

user
to use save as? Making the book read only is not an

option
due to some calculation.

Thanks in advance


.

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
How to force continuous lines in line charts wal50 Charts and Charting in Excel 1 December 21st 04 10:43 PM
Click on X in upper right corner should save FIRST the file you se Thorkild Excel Discussion (Misc queries) 1 December 6th 04 11:54 PM
Calendar,Data valid. and "Save as Webpage" Jim Edwards Excel Discussion (Misc queries) 1 December 1st 04 02:33 AM
How do I save a record from an excel template to a database in a . Fred Smith Excel Discussion (Misc queries) 1 November 30th 04 01:49 PM
This one is tricky....Macro to save file as cell value x in di Andy Excel Discussion (Misc queries) 4 November 26th 04 08:52 AM


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