tak a vylustil som to .) uz mozte robit ludom zlobu na webovkach pomocou VBA
Sub test()
Dim IE As Object
Dim objCollection As Object
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
IE.Navigate "http://www.fourmilab.ch/earthview/pacalc.html#patab"
Set objCollection = IE.document.getElementsByTagName("input")
For Each aTag In objCollection
If aTag.Name = "year" Then aTag.Value = "2020"
Next
For Each aTag In objCollection
If aTag.DefaultValue = "Calculate" Then aTag.Click
Next
Set objCollection = IE.document.getElementsByTagName("textarea")
For Each aTag In objCollection
If aTag.Name = "results" Then aTEXT = aTag.Value
Next
End Sub
premenna aTEXT ma tie informacie co potrebujete
- este jedna vec tam treba osetrit to makro necaka kym otvori tu stranku takze treba tam nastavit nejake 2-3s opozdenie aby to mohlo fungovat
- ale to uz hadam ze si upravite podla seba :)citovat
Sub test()
Dim IE As Object
Dim objCollection As Object
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
IE.Navigate "http://www.fourmilab.ch/earthview/pacalc.html#patab"
Set objCollection = IE.document.getElementsByTagName("input")
For Each aTag In objCollection
If aTag.Name = "year" Then aTag.Value = "2020"
Next
For Each aTag In objCollection
If aTag.DefaultValue = "Calculate" Then aTag.Click
Next
Set objCollection = IE.document.getElementsByTagName("textarea")
For Each aTag In objCollection
If aTag.Name = "results" Then aTEXT = aTag.Value
Next
End Sub
premenna aTEXT ma tie informacie co potrebujete
- este jedna vec tam treba osetrit to makro necaka kym otvori tu stranku takze treba tam nastavit nejake 2-3s opozdenie aby to mohlo fungovat
- ale to uz hadam ze si upravite podla seba :)citovat