Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Don't ask to save changes
What code should I use so that excel won't ask me to Save Changes? Where do
I put it? -- Thanks Shawn |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Don't ask to save changes
Sub CloseandSave()
Application.DisplayAlerts = False Application.ActiveWorkbook.Save If Workbooks.Count 1 Then Application.ActiveWorkbook.Close Else Application.Quit End If Application.DisplayAlerts = True End Sub Checks to see if anyother workbooks are opend, if YSE then SAVES & Closes without Prompt. If ONLY workbook opened, then SAVES & QUITS Excel withoput a prompt. Corey.... "Shawn" wrote in message ... What code should I use so that excel won't ask me to Save Changes? Where do I put it? -- Thanks Shawn |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Don't ask to save changes
I pasted your code into my "ThisWorkbook" object and made some chages to the
spreadsheet then clicked the "x" to close the program and it still prompted me to save changes??? -- Thanks Shawn "Corey" wrote: Sub CloseandSave() Application.DisplayAlerts = False Application.ActiveWorkbook.Save If Workbooks.Count 1 Then Application.ActiveWorkbook.Close Else Application.Quit End If Application.DisplayAlerts = True End Sub Checks to see if anyother workbooks are opend, if YSE then SAVES & Closes without Prompt. If ONLY workbook opened, then SAVES & QUITS Excel withoput a prompt. Corey.... "Shawn" wrote in message ... What code should I use so that excel won't ask me to Save Changes? Where do I put it? -- Thanks Shawn |
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 |