Is it possible to check whether an object supports a certain method without an error handler in VBA?
I've found numerous duplicates asking the question for for example JavaScript and Symphony2, but not yet in VBA.
I would like to use a .sendkeys "{ENTER}"
command to an ie.document
class item and learning how to check whether the object supports a method allows me to write cleaner code in the long run.
example code:
Set elements(17) = ie.document.getElementsByClassName("ng-binding ng-scope")
for each item in elements(17)
item.sendkeys "{ENTER}"
next item