ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   xlAutoOpen and GetActiveObject (https://www.excelbanter.com/excel-programming/326260-xlautoopen-getactiveobject.html)

[email protected]

xlAutoOpen and GetActiveObject
 
Hey,
GetActiveObject() to get the running excel instance does not work
from xlAutoOpen since excel is not registered yet as running. Is there
another function to call to get the IUnknown or IDispatch for excel or
is there another entry point I need to define where GetActiveObject()
will work?

Omri


Anne Troy[_4_]

xlAutoOpen and GetActiveObject
 
Change auto_open to workbook_open.
*******************
~Anne Troy

www.piersontech.com
www.mrexcel.com


wrote in message
ups.com...
Hey,
GetActiveObject() to get the running excel instance does not work
from xlAutoOpen since excel is not registered yet as running. Is there
another function to call to get the IUnknown or IDispatch for excel or
is there another entry point I need to define where GetActiveObject()
will work?

Omri





All times are GMT +1. The time now is 01:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com