Login | |
|
 |
RE: Closing A Spreadsheet - 4/30/2008 2:44:40 AM
|
|
 |
|
| |
Rischip
Posts: 378
Score: 2
Joined: 3/26/2007
Status: offline
|
ActiveWorkbook.Close False Or ActiveWorkbook.Close savechanges:=False Or ActiveWorkbook.Saved = True ActiveWorkBook.Close
< Message edited by Rischip -- 4/30/2008 2:48:14 AM >
_____________________________
Rischip Author of - The Grim Linker
|
|
| |
|
|
|
 |
RE: Closing A Spreadsheet - 4/30/2008 2:45:26 AM
|
|
 |
|
| |
ebgreen
Posts: 4595
Score: 29
Joined: 7/12/2005
Status: offline
|
I forget the setting but there is a setting that you can set before you close to avoid the confirmation. Check the object model documentation and I will check if I get a chance and post back here in case you can't find it. So, yeah, what he said.
< Message edited by ebgreen -- 4/30/2008 2:47:49 AM >
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Closing A Spreadsheet - 5/2/2008 8:02:42 AM
|
|
 |
|
| |
Rischip
Posts: 378
Score: 2
Joined: 3/26/2007
Status: offline
|
quote:
ORIGINAL: sarahbeth27 But as i said i don't want the alert to pop up i just wnt it to close without saving. Thanks http://www.microsoft.com/technet/scriptcenter/resources/qanda/mar06/hey0307.mspx This says that DisplayAlerts = False will use all defaults. The defaults being Save = Yes and Overwrite = Yes. Not sure if that's what they want. But it definately will close without the pop-ups using that method.
_____________________________
Rischip Author of - The Grim Linker
|
|
| |
|
|
|
|
|