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
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