|
-
Dec 30th, 2002, 05:27 PM
#1
Thread Starter
Fanatic Member
Excel object - To save or not to save [RESOLVED]
What is the syntax to NOT prompt me to save the document.
I want to close it WITHOUT saving the changes.
VB Code:
msExcelWorkbook.Application.ActiveWorkbook.Save
Thanks for any help.
JO
Last edited by joltremari; Dec 31st, 2002 at 10:18 AM.
"I have not failed. I've just found 10,000 ways that won't work."
'Thomas Edison'
"If we knew what it was we were doing it wouldn't be called research, would it?"
'Albert Einstein'
VB6
-
Dec 30th, 2002, 10:21 PM
#2
PowerPoster
If you want to close without saving, why are you doing a save command instead of just a close command with the nosave option?
check the object browser for method syntax
-
Dec 31st, 2002, 09:29 AM
#3
Frenzied Member
you set the DisplayAlerts property of your Excel object to false.
This will stop screen prompting.
If you are leaving Excel open, then turn it back on at the end of your code, else your users could get mighty confused
-
Dec 31st, 2002, 10:17 AM
#4
Thread Starter
Fanatic Member
Thanks... DisplayAlerts, I don't know how I overlooked that!
I wasn't using that save command, I put it in the post because I thought the syntax for what I needed was something like this:
msExcelWorkbook.Application.ActiveWorkbook.Save Save:=False
and if it was then who ever answered would only have to copy and paste it instead of typing it all again...oh well
Thanks again
JO
displayalerts = false ---who'd-a-thunk it!
"I have not failed. I've just found 10,000 ways that won't work."
'Thomas Edison'
"If we knew what it was we were doing it wouldn't be called research, would it?"
'Albert Einstein'
VB6
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|