Write in IE text box using VBA

Asked

Viewed 50 times

0

Hello,

Question one: Can VBA communicate with HTML5? I tried to make the VBA click on the "buttons" of a page programmed in HTML5 using the methods .Document.Getelementsbyid, .Document.Getelementsbyname, .Document.Getelementsbynameclass and .Document.Getelementsbytagname but it did not work. There is no way for HTML5 to be more recent than the last VBA update or has but by another method?

2nd doubt: From the second time I run the code, the site I am handling by VBA is already logged in (even though I have not clicked on the option to record data). This causes the VBA to present an error, since it is trying to fill in the login and password on the screen following the login. How do I prevent this error from occurring? Has some way to make the VBA always run as if it was the first time or else make him recognize that this step has already been skipped and proceed to the next?

  • In theory yes, until pq it selects from the selector, in the case of the .Document.GetElementsByID it recovers by element id...

  • 2

    Hello. Could you show the existing code? It could be quite useful to resolve the question.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.