View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Brian Delaney Brian Delaney is offline
external usenet poster
 
Posts: 14
Default vba: Loop to load webpage

Hi,

I'm stuck and wish it was in a loop! I'm loading a webpage, entering login
info that takes me to a homepage and then trying to navigate from there to
another page in the same site and in the same IE browser window. Problem is
I get the login info entered okay on the first page but then the program
moves too quickly, not giving the homepage time to load. I've tried

Do Until .ReadyState = 4
DoEvents
Loop

to let the homepage load but it doesn't work. I'm using Excel 2000 and I've
referenced the Internet Controls library. So...do I need to reference a
different library? Could I use OnTime and navigate to the final page in
another Sub(), but then how do I get the final page to load in the same IE
browser window? Do I need to acknowledge the address of the homepage somehow
in between?

Thanks in advance to anyone who can help...

Brian