Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

By Class Name:

Note: Elements or Element, if Elements then you must specify index of collection via "(0)" = first object
VBA:

IEObj.Document.getElementsByClassName("ui-pg-button ui-corner-all")(0).Click

HTML:

<td class="ui-pg-button ui-corner-all" title="Paste from clipboard">

By Title:

VBA:

IEObj.document.getElementById("buttonExcel").Click
IEObj.document.getElementById("editText").Value = "TEST"

HTML:

<button id="buttonExcel" class="

Sometimes you need to Update via event (OnChange):

https://stackoverflow.com/questions/39827461/excel-vba-ie-11-unable-to-refresh-page-after-selecting-value-in-a-dropdown

IEObj.document.getElementById(HSEProfileDropDownStr).Value = "UpdatedValue"
Application.Wait (Now() + TimeValue("00:00:01"))
IEObj.document.getElementById(HSEProfileDropDownStr).FireEvent ("onchange")



  • No labels