dim s Set xShell = CreateObject("Shell.Application") win_s = False For Each Window In xShell.Windows '対象URLが表示されているか? If TypeName(Window.Document) = "HTMLDocument" Then if Window.Document.url="https://fes.rakuten-bank.co.jp/MS/main/fcs/rb/fes/jsp/mainservice/Affiliation/Multipaymentlink/Login/MultiPaymentLinkLogin.jsp" then Set objIE0 = Window '対象URLが表示→その画面を使う win_s=true exit for
end if next if win_s=false then '対象URLが非表示→新しく画面を開く Set objIE0 = CreateObject("InternetExplorer.Application") objIE0.Visible = True objIE0.Navigate "https://fes.rakuten-bank.co.jp/MS/main/fcs/rb/fes/jsp/mainservice/Affiliation/Multipaymentlink/Login/MultiPaymentLinkLogin.jsp" Do While objIE0.busy = True Loop Do While objIE0.document.readyState <> "complete" Loop end if
'---以下操作コード、必要な部分をコピーしてください--- objIE0.document.all.tags("INPUT").item(0).value="" ' 支店コードの代入文にしてください objIE0.document.all.tags("INPUT").item(1).value="" ' 口座番号の代入文にしてください s = objIE0.document.body.innerhtml if instr(s,"ペット")>0 then
end if if instr(s,"旧姓")>0 then objIE0.document.all.tags("INPUT").item(2).value="" ' 母親の旧姓に該当の合言葉の代入文にしてください end if if instr(s,"出身地")>0 then objIE0.document.all.tags("INPUT").item(2).value="" ' 出身地に該当の合言葉の代入文にしてください end if