other info: each table can contian max 100 record....
Main Topics
Browse All Topicsi have this hard prob to modify my old macro:
Attached is the macro it work with a cicle For NbPages = 65 To 90 inested this cicle is possible:
first solution for me:
count the record in ie.inner into: Pagine 1 di 4 and click on AVANTI button for 4 click and for ech click get data from table
second soultion for me:
click on AVANTI button do until the sheet is filled with the number of record counted in: "Totale fidi individuati:" in this case 308 reord
attached html and image
http://www.mytempdir.com/6
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: sal21Posted on 2006-05-18 at 07:05:57ID: 16708914
sorry the macro: 2()
= False
orer.Appli cation") / elencoSbi lanci;jses sionid=Tkm fJxApZQ8Z6 V4GAjSiStN =" & Chr(NbPages)
gName("tab le") 'objet type table
= True
Sub Importer_tableauPageWeb_V0
'activate Microsoft HTML Objects Library
'activate Microsoft Internet Controls
'
Dim IE As InternetExplorer
Dim maPageHtml As HTMLDocument
Dim Htable As IHTMLElementCollection
Dim maTable As IHTMLTable
Dim J As Integer, I As Integer, X As Integer, LINEA As Integer
Dim NbPages As Byte, Y As Byte
Application.ScreenUpdating
For NbPages = 65 To 90
Set IE = CreateObject("InternetExpl
IE.Visible = True
IE.navigate "http://antfat/antfat/ewaf
Do Until IE.readyState = READYSTATE_COMPLETE
DoEvents
Loop
Set maPageHtml = IE.document
Set Htable = maPageHtml.getElementsByTa
For X = 2 To Htable.Length - 1
If X = 2 And NbPages = 65 Then
Y = 1
Else
Y = 2
End If
Set maTable = Htable(X)
For I = Y To maTable.Rows.Length 'rows in table
LINEA = LINEA + 1
For J = 1 To maTable.Rows(I - 1).Cells.Length 'each cell in row
Cells(LINEA, J) = maTable.Rows(I - 1).Cells(J - 1).innerText
Next J
Next I
Next X
DoEvents
IE.Quit
Set IE = Nothing
Next NbPages
Application.ScreenUpdating
End Sub