-1

I was trying to use solution from this post Login to javascript webpage with Excel vba

for my purposes but I failed to (I'm not programmer just finance guy). Could you please help me how to "click" button on this page

Login procedure
ie.document.getElementById("b-7").Value = "7740001454"
ie.document.forms("DocumentForm").Submit

Submit is causing error and not working :/

alexander.polomodov
  • 5,396
  • 14
  • 39
  • 46
Artur
  • 3
  • 1

1 Answers1

0

Could you please try the below Code, as it is working for me

Sub Temp()
  With CreateObject("InternetExplorer.Application")
  .Navigate "https://ppuslugi.mf.gov.pl/?link=VAT&;"
  .Visible = True
  Do Until .ReadyState = 4
    DoEvents
  Loop
  DoEvents
  With .document
     .getElementById("b-7").Value = "7740001454"
     .getElementById("b-8").Click
  End With
 End With
End Sub
nishit dey
  • 458
  • 1
  • 7
  • 21