Hello,
I have a little issue where I can't seem to find a solution.
I want to mark a checkbox in IE via Excel/VBA . The Problem is that the there are two checkboxes with the same name. They only have different values.
HTML:
I have already tried the following functions to check the checkbox:
'IE.document.forms(0).elements("Cancle").Click
'IE.document.forms(0).elements("Cancle").Click
'IE.document.forms(0).getElementByValue("Cancle").Click
'IE.document.forms(0).getElementByID("Cancle").Checked = True
'IE.document.forms(0).getelementsByValue("Cancle").Click
'IE.document.forms(0).Attributes("Cancle").Click
'If IE.document.forms(0).getAttribute("Cancle") Then
' SubmitInput.Checked = True
'End If
'If IE.document.forms(0).ClassName = "cancle" Then
'IE.document.forms(0).Click
'End If
But I always get an error message "Runtime Error 91" or no error message but the checkbox wont be selected.
I would appreciate it if someone could tell me what I am doing wrong or have a suggestion to solve this.
Thank you and have a nice day,
Bookmarks