I'm trying to use a getElementsByClassName in an Access macro. You're experiencing an error on the line:
If ie.Document.GetElementsByClassName("msgErroAdic").Length > 1 Then
Being Dim ie as Object
and Set ie = CreateObject("InternetExplorer.Application")
Returns the error that the method can not find.
I found this site: link
There is no GetElementsByClassName method in the InternetExplorer object.
However, on this other site: link there is the GetElementsByClassName .
I would like to know the difference.
I also saw other issues where they indicate creating a function, but it did not work either. Public Function GetElementsByClassName(Source As HtmlDocument, ClassName As String) As HtmlElement()
Compile error: "The user-defined type has not been defined".