|
-
Aug 31st, 2000, 05:59 PM
#1
Thread Starter
Hyperactive Member
I am using this code:
ActiveWindow.Close
Is there a way that when VBA closes the form, that it not come up and ask "WOuld you like to save changes to file?"
Thanks Alot,
David Gottlieb
CIW Certified Internet Webmaster
Web Developer/Designer
-
Aug 31st, 2000, 06:09 PM
#2
Hyperactive Member
If it is in word then you have to save the document first.
ActiveDocument.Save 0
The zero means don't ask for changes
-
Aug 31st, 2000, 06:11 PM
#3
ActiveWindow.Close wdDoNotSaveChanges
-
Aug 31st, 2000, 06:21 PM
#4
Thread Starter
Hyperactive Member
Thanks Alot,
David Gottlieb
CIW Certified Internet Webmaster
Web Developer/Designer
-
Aug 31st, 2000, 06:22 PM
#5
Thread Starter
Hyperactive Member
This is and Excel Workbook just a reminder. What is the code for that.
Thanks Alot,
David Gottlieb
CIW Certified Internet Webmaster
Web Developer/Designer
-
Aug 31st, 2000, 06:31 PM
#6
ActiveWindow.Close False 'dont save changes
ActiveWindow.Close True 'saves the changes
-
Aug 31st, 2000, 06:35 PM
#7
Thread Starter
Hyperactive Member
You are a gift from God. Thank you so much
Thanks Alot,
David Gottlieb
CIW Certified Internet Webmaster
Web Developer/Designer
-
Sep 1st, 2000, 01:13 AM
#8
Conquistador
you can also use:
Code:
ActiveWindow.Close SaveChanged:=False
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
|