Sie sind auf Seite 1von 1

Attribute VB_Name = "Module1" Sub getdata() For i = 1 To 10 downloaddata (i) Sheets.

Add Next i End Sub Sub downloaddata(num As Integer) Attribute downloaddata.VB_ProcData.VB_Invoke_Func = " \n14" ' ' Macro1 Macro ' ' With ActiveSheet.QueryTables.Add(Connection:= _ "URL;http://ieema.org/Contents/MemberDirectory/OfflineMem_Details.aspx?i d=" & num _ , Destination:=Range("$A$1")) .Name = "OfflineMem_Details.aspx?id=" & num .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 = xlWebFormattingNone .WebTables = "3" .WebPreFormattedTextToColumns = True .WebConsecutiveDelimitersAsOne = True .WebSingleBlockTextImport = False .WebDisableDateRecognition = False .WebDisableRedirections = False .Refresh BackgroundQuery:=False End With End Sub

Das könnte Ihnen auch gefallen