jogmen
asked on
Exec Excel Macro from VB6
Is there a way to kick off a
macro resident in a Excel 2000 spreadsheet (other than the auto ones) from a visual basic .exe?
Thanks a bunch.
macro resident in a Excel 2000 spreadsheet (other than the auto ones) from a visual basic .exe?
Thanks a bunch.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
One thing as mentioned by wesleystewart, you will need to add a reference to the following:
Microsoft Excel 9.0 Object Library
Microsoft Excel 9.0 Object Library
Dim objExcel as object
Set objExcel = GetObject(, "Excel.Application")
objExcel.Run("sub as string", arg1, arg2)
You need to reference the Excel library.
Wes