Access/VBA Library

scrapeElement Method

Returns the content of the first element on the current webpage matching the given CSS-selector.

See also:


clsIE.scrapeElement( cssSelector )
Name Type Description
clsIE   The name of an object of type clsIE
cssSelector String Required. Pattern to select an element on the current webpage.
Return value

String : The content of the element selected. When not found an empty string is returned.

Dim IE As New clsIE
IE.location = ""
MsgBox "The title of the website : " & IE.scrapeElement("title")