I don't have a valid phone number and postal code to complete the jog. Here
is what i have so far. I can enter the phone number and Postcode and submit
the form, but I don't get a valid response.
Sub PostCodes()
POSTCODE = InputBox("Enter PostCode (NW12 9BN): ")
If POSTCODE = "" Then
POSTCODE = "NW12 9BN"
End If
PHONENUMBER = InputBox("Enter Phone Number (02071234567): ")
If PHONENUMBER = "" Then
PHONENUMBER = "02071234567"
End If
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
URL = "
http://www.orange.co.uk/partner-savc/default.cfm"
'get web page
IE.Navigate2 URL
Do While IE.readyState <> 4
DoEvents
Loop
Do While IE.busy = True
DoEvents
Loop
Set Form = IE.document.getElementsByTagname("Form")
Set Inputform = Form.Item(0)
Set PhoneNumbox = Inputform.Item(0)
PhoneNumbox.Value = PHONENUMBER
Set PostCodebox = Inputform.Item(1)
PostCodebox.Value = POSTCODE
Set POSTCODEbutton = IE.document.getElementById("theForm")
POSTCODEbutton.onsubmit = POSTCODEbutton.action
POSTCODEbutton.submit
'POSTCODEbutton.Click
Do While IE.busy = True
DoEvents
Loop
'Set Table = IE.document.getElementsByTagname("Table")
'Location = Table(0).Rows(2).innertext
IE.Quit
'MsgBox ("Zip code = " & POSTCODE & " City/State = " & Location)
End Sub