Jaafar Tribak
Well-known Member
- Joined
- Dec 5, 2002
- Messages
- 9,858
- Office Version
- 2016
- Platform
- Windows
I am creating a new instance of IE via the CreateObject Function ie: using late binding .
The CreateObject function returns a reference to the newly created IE application through which one can access all the IE Objects, Properties and Methods from our project. So far so good.
Now we regards to automating the IE Events, we could easily achieve the above if we were using Early binding by adding to our project a reference to the IE object library and using the WithEvents keyword.However we don't have a reference to the IE object library so we cannot use WithEvents .
So the question is : How can we hook into the IE events from Excel without first adding a reference to the IE library ??
By extension, I would like to know if there is a way of hooking into other application events such as MsWord,PowerPoint etc without first adding a refenrence to their respective libraries .
Regards.
The CreateObject function returns a reference to the newly created IE application through which one can access all the IE Objects, Properties and Methods from our project. So far so good.
Now we regards to automating the IE Events, we could easily achieve the above if we were using Early binding by adding to our project a reference to the IE object library and using the WithEvents keyword.However we don't have a reference to the IE object library so we cannot use WithEvents .
So the question is : How can we hook into the IE events from Excel without first adding a reference to the IE library ??
By extension, I would like to know if there is a way of hooking into other application events such as MsWord,PowerPoint etc without first adding a refenrence to their respective libraries .
Regards.