LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default send keystrokes to whereis.com.au - get directions

I managed to use Excel VB to open www.whereis.com.au web site and go to the
get directions web site. However, I have trouble to send key strokes to the
field. here is my macro.

Sub getdirection()

'log onto the www.whereis.com.au web site

Dim ie As Object
Set ie = CreateObject("InternetExplorer.Application")
ie.Visible = True
ie.navigate
"http://www.whereis.com/whereis/home.do;jsessionid=31763A8054B6B4158122BB6F9995530 3.server3-1"

Do While ie.Busy And Not ie.ReadyState = 4:
Application.Wait (Now + TimeValue("0:00:02"))
DoEvents
Loop

ie.Document.all("whereisAddress.streetNumber").Val ue = "65"
ie.Document.all("whereisAddress.fullStreetName").V alue = "Waterloo Road"
ie.Document.all("whereisAddress.suburb").Value = "Mosman"
ie.Document.all("whereisAddress.state").Value = "NSW"


Set ipf = ie.Document.all.Item("cmd")
ipf.Click





End Sub

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you freeze in two directions in excel Amber Excel Discussion (Misc queries) 3 May 13th 10 06:54 PM
Looking up and create driving directions JackR Excel Discussion (Misc queries) 2 February 1st 09 04:53 PM
Vlookup DETAILED directions jander Excel Worksheet Functions 2 January 16th 08 06:56 PM
V/HLOOKUP in both directions? thexdane Excel Worksheet Functions 5 November 15th 07 03:31 PM
Lookup 2 directions Tony Excel Worksheet Functions 1 March 28th 06 04:12 AM


All times are GMT +1. The time now is 11:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"