Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 279
Default Difficulty analysing Journey Planner result

In message of Thu, 22 Oct 2009
16:15:23 in microsoft.public.excel.programming, Walter Briscoe
writes

[snip]

I have not found out how to cause buttons to be clicked from VBA.


I have not found out how to click a button but HAVE found out how to run
the button code.

Dim ButtonText As String
Dim RE As Object
Set RE = CreateObject("VBScript.RegExp")

' Grab the code the button runs
RE.Pattern = "(.|\n)*href=.(.*)..View.*$"
ButtonText = RE.Replace(Tbl.innerhtml, "$2")

' s/&/&/g
RE.Pattern = "&"
RE.Global = True
ButtonText = RE.Replace(ButtonText, "&")

' Prefix the site
IE.Navigate2 "http://journeyplanner.tfl.gov.uk/user/" & ButtonText

I will continue by analysing the result of that navigation.
--
Walter Briscoe
Reply
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
Help with Analysing Data KimC Excel Discussion (Misc queries) 3 June 29th 09 02:00 AM
Analysing my CSV data downstage Excel Discussion (Misc queries) 3 March 20th 08 04:50 PM
analysing companies - help!! therum Excel Discussion (Misc queries) 2 April 1st 07 01:06 AM
Journey time calculator Steve Crowther Excel Programming 3 February 11th 07 12:37 PM
How to audit and edit Excell files on the journey? Dmitry Kopnichev Excel Discussion (Misc queries) 19 October 7th 05 06:17 AM


All times are GMT +1. The time now is 10:14 PM.

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

About Us

"It's about Microsoft Excel"