C
CRayF
I've created an example.VBS file that contains:
-----------------
Dim XLApp
Set XLApp = CreateObject("Excel.Application")
xlapp.visible = true
xlapp.workbooks.open "myworkbook.xls"
-----------------
In the myworkbook.xls is an auto run macro
-------------
Sub Autpen()
'some code
End Sub
-------------
If I start the myworkbook.xls by itself it runs the Autpen() macro *just
fine*. However, when my myworkbook.xls is called via the example.VBS script
it DOES NOT auto run the macro.
Any clues?
-----------------
Dim XLApp
Set XLApp = CreateObject("Excel.Application")
xlapp.visible = true
xlapp.workbooks.open "myworkbook.xls"
-----------------
In the myworkbook.xls is an auto run macro
-------------
Sub Autpen()
'some code
End Sub
-------------
If I start the myworkbook.xls by itself it runs the Autpen() macro *just
fine*. However, when my myworkbook.xls is called via the example.VBS script
it DOES NOT auto run the macro.
Any clues?