Hi everyone. I would like to ask if it is possible to have Excel VBA simulate a click on a piece of highlighted text.
As an example, I have been able to code the macro so that it pulls the website:
With IE
.Visible = True
.Navigate2 " Do Until .ReadyState = 4: DoEvents: Loop
End With
I have then used onkey to find and select "Contact Us". Is it possible to have VBA click through the Contact Us link and open the next page?
The rest of my VBA code then pulls it into Excel where I can run other macros to find the data I am looking for. I would like to be able to run this for a number of various sites' "Contact Us" link, so that is why I am going through the step of finding it first.
As an example, I have been able to code the macro so that it pulls the website:
With IE
.Visible = True
.Navigate2 " Do Until .ReadyState = 4: DoEvents: Loop
End With
I have then used onkey to find and select "Contact Us". Is it possible to have VBA click through the Contact Us link and open the next page?
The rest of my VBA code then pulls it into Excel where I can run other macros to find the data I am looking for. I would like to be able to run this for a number of various sites' "Contact Us" link, so that is why I am going through the step of finding it first.