| | |
count element in table html
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Feb 2008
Posts: 20
Reputation:
Solved Threads: 0
http://www.x-rates.com/cgi-bin/cgica...lue=1&base=EUR
Based the link how to count element in table of this page?
note: is the table where are all currency values
tks.
in vba please
Based the link how to count element in table of this page?
note: is the table where are all currency values
tks.
in vba please
Last edited by sal21; Mar 5th, 2009 at 8:41 am.
•
•
Join Date: Mar 2009
Posts: 832
Reputation:
Solved Threads: 152
•
•
•
•
http://www.x-rates.com/cgi-bin/cgica...lue=1&base=EUR
Based the link how to count element in table of this page?
note: is the table where are all currency values
tks.
in vba please
•
•
Join Date: Feb 2008
Posts: 20
Reputation:
Solved Threads: 0
vba for excel.
piece of my code to connect:
Set oIE = CreateObject("InternetExplorer.Application")
With oIE
'For lngRow = 1 To lngMaxRow
' PAGINA = 1
' ABI = Empty
' ABI = WS.Range("B" & lngRow)
'If WS.Range("C" & lngRow) = Empty Then
URL = "http://www.x-rates.com/cgi-bin/cgicalc.cgi?value=1&base=EUR"
Debug.Print URL
.Visible = True
.Navigate (URL)
Do While .Busy
DoEvents
Loop
Do While .ReadyState <> 4
DoEvents
Loop
.....
ecc...
piece of my code to connect:
Set oIE = CreateObject("InternetExplorer.Application")
With oIE
'For lngRow = 1 To lngMaxRow
' PAGINA = 1
' ABI = Empty
' ABI = WS.Range("B" & lngRow)
'If WS.Range("C" & lngRow) = Empty Then
URL = "http://www.x-rates.com/cgi-bin/cgicalc.cgi?value=1&base=EUR"
Debug.Print URL
.Visible = True
.Navigate (URL)
Do While .Busy
DoEvents
Loop
Do While .ReadyState <> 4
DoEvents
Loop
.....
ecc...
•
•
Join Date: Mar 2009
Posts: 832
Reputation:
Solved Threads: 152
Okay, at first I thought this might be tough to do since it is a spawned application, but... It was easier than I thought. Add these variables at the top.
and then after your readystate check add this
Now, as you can see, "C" is a varient and "I" is used for counting the links. Also, I tried .Document.Links.Count but that is not supported so you have to enumerate through them to get the count.
Good Luck
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Dim C, I As Integer
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
For Each C In .Document.links I = I + 1 Next C MsgBox I
Now, as you can see, "C" is a varient and "I" is used for counting the links. Also, I tried .Document.Links.Count but that is not supported so you have to enumerate through them to get the count.
Good Luck
![]() |
Similar Threads
- insert csv file into mysql through php (PHP)
- Spellchecker Remote (JavaScript / DHTML / AJAX)
- get html element value using php (PHP)
- Having prolems with a guestbook (HTML and CSS)
- I hate Firefox! (JavaScript / DHTML / AJAX)
- printing webpages (JavaScript / DHTML / AJAX)
- browser incompatibility? page wont finish loading (JavaScript / DHTML / AJAX)
- Unexpected T_String: I'm not seeing it (PHP)
- convert a file containing javascript to aspx (Community Introductions)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Template Crystal report and VB6
- Next Thread: Media Player load in game
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





