Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Have come across a new problem, Have set up a macro thanks to Pinmaster and Ron Coderre which does automatic web updates based on cell data see below Dim URL2Use As String URL2Use = "URL;" & Sheet1.Range("D1").Value With ActiveSheet.QueryTables.Add(Connection:=URL2Use, _ Destination:=Range("A10")) .Name = "AutoLink" .FieldNames = True .RowNumbers = False .FillAdjacentFormulas = False .PreserveFormatting = True .RefreshOnFileOpen = False .BackgroundQuery = True .RefreshStyle = xlOverwriteCells .SavePassword = False .SaveData = True .AdjustColumnWidth = True .RefreshPeriod = 0 .WebSelectionType = xlSpecifiedTables .WebFormatting = xlWebFormattingNone .WebTables = "2" .WebPreFormattedTextToColumns = True .WebConsecutiveDelimitersAsOne = True .WebSingleBlockTextImport = False .WebDisableDateRecognition = False .WebDisableRedirections = False .Refresh BackgroundQuery:=False End With End Sub This works in a new workbook, but doesn't work when I add a identical page and macro to an existing workbook, Have had Runtime 1004 errors, invalid web address errors and background refresh errors, yet it works fine in a dedicated workbook?? Any thoughts |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to do automatic Web Queries?? | Excel Discussion (Misc queries) | |||
options to update automatic links | Excel Worksheet Functions | |||
How can I find automatic links in an Excel-sheet? | Excel Discussion (Misc queries) | |||
automatic query refresh | Excel Discussion (Misc queries) | |||
automatic query refresh | Excel Discussion (Misc queries) |