Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub Extracttable()
' ActiveWorkbook.Worksheets.Add With ActiveSheet.QueryTables.Add(Connection:= _ "URL;file:///D:/group2005/group2005.htm", Destination:=Range("A1")) .Name = "srlgroup2005" .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 = "1" .WebPreFormattedTextToColumns = True .WebConsecutiveDelimitersAsOne = True .WebSingleBlockTextImport = False .WebDisableDateRecognition = False .WebDisableRedirections = False .Refresh BackgroundQuery:=False End With End Sub How can i amend the above code to increment .WebTables by 1 - to extract all tables in the file Thxs |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Microsoft Querry | Excel Worksheet Functions | |||
Extract data to create numerous tables | Excel Discussion (Misc queries) | |||
querry | Excel Discussion (Misc queries) | |||
Use two different value to run a querry | Excel Discussion (Misc queries) | |||
Querry Range and Add | Excel Programming |