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

Passing an Excel Application as an object to a Function 1

Status
Not open for further replies.

AgentM

MIS
Jun 6, 2001
387
US
Can I pass an object of type Excel Application to another
Procedure in VBScript

The Code:
Sub CreateApp()
Dim ExcelApp: Set ExcelApp = CreateObject(Excel.Application)
.... more code
Call_Func(ExcelApp,var)
set excelapp = nothing
end sub

Sub Call_func(app,var)

End sub

**********************************
The code crashes at 'app' in the Call_Func
any ideas why?

Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top