| | |
count element in table html
![]() |
•
•
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 7:41 am.
•
•
Join Date: Mar 2009
Posts: 1,214
Reputation:
Solved Threads: 220
•
•
•
•
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: 1,214
Reputation:
Solved Threads: 220
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
Views: 580 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
6 7 429 2007 access activex ado append array banned basic beginner blackjack bmp box cd channel9 client component connectionproblemusingvb6usingoledb data database datareport date delete dissertationthesis dissertationtopic error excel filename filter flex form game grid group header icon ide image inboxinvb interaction key keypress label list listbox listview liveperson machine measure metadata movingranges nice number object open oracle os outlook password pause pdf picture pos print printer problem program query random reading record refresh report save search size sort sound spectateswamp sql struct subroutine sum table tags textbox time timer variable variables vb vb6 vb6.0 vba visual visualbasic web windows






