RobMatthews
Board Regular
- Joined
- Nov 16, 2008
- Messages
- 81
Hi all.
I'd like to run a macro to generate a list in excel of the urls open in all tabs of the current instances of IE (Internet Explorer), Firefox/Mozilla and Chrome. Sort of like a snap-shot of current browser states.
But I've run into a hurdle straight up: I get an "ActiveX component can't create object" when trying to get a reference to an open instance of IE, in the following fragment:
The commented out line works fine, but the active line does not.
Equally, I can't figure out how to get a reference to Firefox.
Chrome: I haven't actually installed on this machine yet...
Are there any reference files that i should include? Or am I going about this the wrong way?
(If this is in the wrong place, please forgive me, and feel free to move it.)
TIA.
I'd like to run a macro to generate a list in excel of the urls open in all tabs of the current instances of IE (Internet Explorer), Firefox/Mozilla and Chrome. Sort of like a snap-shot of current browser states.
But I've run into a hurdle straight up: I get an "ActiveX component can't create object" when trying to get a reference to an open instance of IE, in the following fragment:
Code:
Sub RetrieveTabURLs()
Dim oIE As InternetExplorer
Set oIE = GetObject(, "InternetExplorer.Application")
'Set oIE = CreateObject("InternetExplorer.Application")
End Sub
The commented out line works fine, but the active line does not.
Equally, I can't figure out how to get a reference to Firefox.
Chrome: I haven't actually installed on this machine yet...
Are there any reference files that i should include? Or am I going about this the wrong way?
(If this is in the wrong place, please forgive me, and feel free to move it.)
TIA.