Hi
I am trying to navigate the following webpage using VBA behind excel but am stuck.
http://timessquare.hyatt.com/en/hotel/home.html
I am trying to enter dates in the "Arrive" and "Depart" text fields and then click the "Check Availability" button.
objIE.navigate "http://timessquare.hyatt.com/en/hotel/home.html"
Do While objIE.Busy Or objIE.readyState <> 4
DoEvents
Loop
Set checkInDate = .document.getElementsById("arrive")
If Not (checkInDate.Item(0) Is Nothing) Then
checkInDate.Item(0).Value = "Jan / 25 / 2014"
End If
My code goes into the if statement but does not change the value of the date (as displayed on the webpage). I have tried entering the date using various ways but it does not work.
Could someone please help me.
Thanks
S
Bookmarks