![]() |
#1
|
|||
|
|||
![]()
I am trying to capture the redirected URL with Excel Macro, but during run time, this piece of code giving me a run time error (Run-time error '-2147467259 (80004005)':Method 'Document' of object 'IWebBrowser2' failed). Could some one please help me whats wrong with this code and how to fix this issue.
Dim myIE as Object Dim redURL as String Set myIE = CreateObject("InternetExplorer.Application") myIE.visible = True myIE.Navigate <URL1> Do While myIE.Busy Loop 'This is where I am getting the Run time error. 'Run-time error '-2147467259 (80004005)':Method 'Document' of object 'IWebBrowser2' failed redURL = myIE.Document.URL |
Tags |
macro, vba |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
jbvalen | Word VBA | 5 | 05-04-2017 05:03 PM |
custom icon, undo/redo for macro, permanent macro | Rapier | Excel | 0 | 08-05-2013 06:30 AM |
email being redirected to a user not on list of users to be sent to | sjvjoe | Outlook | 0 | 09-26-2012 12:42 PM |
![]() |
lordnacho | Outlook | 1 | 11-01-2010 06:05 PM |
time capturing | aligahk06 | Excel | 0 | 04-18-2010 11:53 PM |