Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing excel without the "Save Changes" dialog

Status
Not open for further replies.

studybum

Programmer
Feb 24, 2001
14
0
0
US
I have a program that utilizes an excel formula. I created a mobjExcel as an new application. On the form unload I have mobjExcel.quit. The program comes back with a question, "Do you want to save changes to the current Workbook?" How do I keep this from opening?

When I shut down the computer another dialog came up asking if I wanted to close excel. What am I missing?
 
Code:
'Close the Workbook
objWB.Close saveChanges:=False

'Or, just close the Application
objExcel.DisplayAlerts = False
objExcel.Quit
Hope this helps!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top