dit is de equivalent van de webquerys
Code:
Option Explicit
Const URL_LOTTO As String = "URL;http://www.lotto.be/pages/show.aspx?Culture=nl&pageid=results/latest/lotto&cache=33919f2a"
Const BESTEMMINGSCEL_LOTTO As String = "AD10"
Const URL_JOKER As String = "URL;http://www.lotto.be/pages/show.aspx?Culture=nl&pageid=results/latest/joker&cache=33919f2a"
Const BESTEMMINGSCEL_JOKER As String = "AD25"
Sub Webquerys()
'ActiveWorkbook.Worksheets.Add
With ActiveSheet.QueryTables.Add(Connection:=URL_LOTTO, Destination:=Range(BESTEMMINGSCEL_LOTTO))
.Name = "lotto"
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.RefreshStyle = xlOverwriteCells
.WebTables = "18,""_2669ea9b8633daee__ctl0__ctl1_LottoNbrTable"",""_2669ea9b8633daee__ctl0__ctl1_LottoDetail"""
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
With ActiveSheet.QueryTables.Add(Connection:=URL_JOKER, Destination:=Range(BESTEMMINGSCEL_JOKER))
.Name = "joker"
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.RefreshStyle = xlOverwriteCells
.WebTables = """_2669ea9b8633daee__ctl0__ctl1_JokerNbrTable"",""_2669ea9b8633daee__ctl0__ctl1_JokerDetail"""
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
End Sub
Voor de rest heb ik geen tijd moet werken
maar begreep je vraag ook niet echt
leg het even beter uit kijk ik er morgen nog even naar