Link to home
Start Free TrialLog in
Avatar of Flora Edwards
Flora EdwardsFlag for Sweden

asked on

Object Variable or with block variable not set ERROR in VBA

Please see attached.

User generated image
the error is in line
Set eleColtr = htmlTables(intTableIndex).getElementsByTagName("tr")

Open in new window

Book1.xlsb
Avatar of Fabrice Lambert
Fabrice Lambert
Flag of France image

Instead of creating an Internet Explorer object, you'd better make a form with a web browser object, and catch the DocumentComplete event.

There is an article on MSDN:
https://support.microsoft.com/en-us/help/180366/how-to-determine-when-a-page-is-done-loading-in-webbrowser-control
Avatar of Flora Edwards

ASKER

Fabrice,

thanks, but led me on a wild-goose chase.  i cannot debug the code which i have and yet, how would i use the information on the link you shared.
i cannot debug the code which i have...
Do you mean that you don't know how?
martin

i am not good at VBA.

currently my code shown in my OP. has an error. i do not know what it occurs and how to fix it.
SOLUTION
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks.