0

html id が「ex_a1」、「ex_a2」、「ex_a3」などとします。5文字目だけ参考にしていただけますか?

こんな感じかな?

`薄暗い要素 = WebBrowser1.Document.GetElementsByTagName("a")

    For Each element As HtmlElement In elements

        If element.GetAttribute("className") = "EXAMPLE" Then
            If 5TH_LETTER_OF_ID = UserChoice then 
            element.InvokeMember("click")
            Exit For
          End If
        End If
    Next`

UserChoice は 0 から 16 までの数値です

4

1 に答える 1