Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Can Kaya   on Oct 13 In MS Office Category.

  
Question Answered By: Oscar Evans   on Oct 13

Don't you need to wait until the "Click" is resolved? I have a routine that
enters data on a page  multiple times, using a loop. Each time I do the
"Click", I have to wait until the next page is ready:

Set oForm = oIE.Document.forms(0)
For Each oCell In ActiveSheet.Range("A2:A500")
If oCell.Value = "" Then Exit For
.
.
.
oForm(".save2").Click
Do: DoEvents: Loop While oIE.Busy
Do: DoEvents: Loop Until oIE.ReadyState = READYSTATE_COMPLETE
Set oForm = oIE.Document.forms(0)
Next oCell

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Web to Excel Using VBA Or get search suggestion and latest updates.


Tagged: