![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: Stockton, California
Posts: 281
|
Hi everyone,
I have a file that auto saves when closed. But there seems to be a problem when users manually save the file. Is there a way to prevent manual saving of the file and make it ONLY save from the close macro i have in place already? I would like to prevent the save button AND shortcut save methods but allow my close save. How could i do this? Thanks |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Posts: 363
|
__________________
It's never too late to learn something new. Ricky |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Hi Rob...
Alternative which I have used myself. Public UserSave as Boolean in any standard module. UserSave = True in Workbook open event sub In your workbook before save event: Cancel = UserSave In your macro which saves the book: UserSave = False 'before saving Tom |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Location: Stockton, California
Posts: 281
|
Thanks guys, Hmm, i did a search for disable save and that post did not come up. oh well, thanks
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|