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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing printing an Excel object without saving change.

Status
Not open for further replies.

shaminda

Programmer
Jun 9, 2000
170
US
There is a program in Visual Basic that opens an excel 97 worksheet and writes to it. I want my program to write to the excel worksheet print it and close the object without saving the changes. Write now the program opens the excel 97 worksheet, and I have to manualy close the program. And it asks whether to save the changes. So buy just clicking a button in VB, the program should
1) write to the excel worksheet
2) print the worksheet to printer
3) close the worksheet without saving changes.

How do I do this?

Thank You!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top