LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Retrieving consecutive pages in web query What's wrong here?

true&page=" & i + 1 & "&count=100&
also comment out .name
I would have written using a refresh and moving the result to another sheet.
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Herman" wrote in message
...
Hello
How come I keep always getting the same 100 items instead of the next
100? I wrote this code , of which I do not understand every line but
something similar worked in other queries.
Could you help? I'd be very gratefull.
Herman
Sub Macro5()
Dim i As Integer
For i = 0 To 3
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;
http://www.iec-iab.be/nl/diensten/zoeken/Pages/
Zoeken.aspx?all=true&page=i+1&count=100&ext=on&int ern=on" _
, Destination:=Range("$A$1").Offset(i * 103, 0))

.Name = "Zoeken.aspx?all=true&page=i
+1&count=100&ext=on&intern=on"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingAll
.WebTables = 5
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
.Delete
End With
Next i
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
pages open is wrong positions rwfster Excel Discussion (Misc queries) 1 April 1st 09 06:10 PM
Looping through data on consecutive pages markvi Excel Discussion (Misc queries) 2 June 28th 07 09:46 PM
Consecutive Numbered Pages frpkaren Excel Discussion (Misc queries) 2 April 3rd 07 04:28 PM
RUN CONSECUTIVE EXCEL DATES ON DIFFERENT PAGES IN WORD DOCUMENT KELL Excel Worksheet Functions 1 March 31st 05 04:47 PM
Retrieving FoxPro Data using Query agreene Excel Programming 1 April 6th 04 05:24 AM


All times are GMT +1. The time now is 02:24 AM.

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"