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

Excel - Word Automation from VB 6

Status
Not open for further replies.

chindas

Programmer
May 18, 2006
14
ES
Hi all,

I have a VB6 app who manages a word doc. I use BeforeSave event to control whether the doc must be saved. And the Terminate event to Set oAppWord = Nothing.

'Object declaration at form level
Dim WithEvents oAppWord As Word.Application
Dim WithEvents oAppExcel As Excel.Application

I´m trying to do something similar with an Excel object, but the Terminate event doesn´t exist, so I can´t Set oAppExcell = Nothing, and I can´t find any other event valid for this purpose..

Any ideas?
 
Oops, sorry, i mean Quit event in place of Terminate event..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top