Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA Save
Hi
I used the ffg code, Private Sub cmdReturn_Click() ActiveWindow.Close([savechanges]) = False End Sub but it returns an error ...... "Compile Error....................Assignment to constant not permitted" is there a different code i can use to not save a doc or just not get excel to ask for save? Regards |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA Save
How about:
Private Sub cmdReturn_Click() ActiveWorkbook.Close savechanges:=False End Sub Zaahir wrote: Hi I used the ffg code, Private Sub cmdReturn_Click() ActiveWindow.Close([savechanges]) = False End Sub but it returns an error ...... "Compile Error....................Assignment to constant not permitted" is there a different code i can use to not save a doc or just not get excel to ask for save? Regards -- Dave Peterson |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA Save
Thanx david, works beautifuly
"Zaahir" wrote: Hi I used the ffg code, Private Sub cmdReturn_Click() ActiveWindow.Close([savechanges]) = False End Sub but it returns an error ...... "Compile Error....................Assignment to constant not permitted" is there a different code i can use to not save a doc or just not get excel to ask for save? Regards |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Save, save as, page setup dimmed out in unprotected excel sheet? | Excel Discussion (Misc queries) | |||
disable save and saveas from menubar and save via command button | Excel Programming | |||
Disable save, save as, but allow save via command button | Excel Programming | |||
How to diasble save and save as menu but allow a save button | Excel Programming | |||
Totally Disabling (^ save ) (Save as) and Save Icon – Which code do I use: | Excel Programming |