Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Well done! The VBA code works very well, both for ById and ByName references, but I can't reach anchor tags with neither name nor id:

with objBrowser.jsEval("document.querySelector('a[onclick =""mj.js (x, y, z); return false"")[0].click") can't reach object like:

Displayed text

and with jsEval("document.getElementsByClassName('title')[0].value") I can't access the text contained in the first class element with that name.

Is my syntax incorrect or these commands can't be used? (sorry but I'm 64 and not as ready as in my 20s)
Thank you.

What I have tried:

Automate Chrome / Edge using VBA
Posted
Updated 2-Apr-22 9:06am

THis looks like it's to do with specific code, probably from an article.

If so, don't post this under Quick Answers - if you got the code from an article, then there is a "Add a Comment or Question" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to speak to them.
Posting this here relies on them "dropping by" and realising it is for them.

The rest of us 15,250, 762 members have no idea what code you are talking about!
 
Share this answer
 
It looks like you need to ask the author of this article: Automate Chrome / Edge using VBA[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900