Solved

Turn off save confirmation for excel in VB6

Posted on 2002-05-01
3
162 Views
Last Modified: 2008-01-09
I've a VB program that populates an Excel sheet, prints it out, then closes it.

Every time it closes it's asking if I want to save my changes, which is always No.

How can I turn off the save confirmation and just have it dump the changes when it quits? It's VB controlling all of this, or if theres a way to turn it off just inside that 1 file, but I dont want a global change for all of Excel... just when I'm using this file.

Anyone?
0
Comment
Question by:edskee
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
Dreamboat earned 50 total points
ID: 6984297
On the Workbook Before Close, put:

Workbook.Saved = True

0
 
LVL 2

Author Comment

by:edskee
ID: 6984325
Thank you much!
0
 
LVL 22

Expert Comment

by:Dreamboat
ID: 6984396
:)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
My experience with Windows 10 over a one year period and suggestions for smooth operation
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now