Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Looks like a simple WebQuery will get it -
Sub QueryChemicalData() Dim sUrl As String ' two parts to avoid line wrapping! sUrl = "http://spreadsheets.google.com/pub?key=" sUrl = sUrl & "twQ35hFIq-y0N84xQ5l0ICQ&output=html" With ActiveSheet.QueryTables.Add(Connection:= _ "URL;" & sUrl _ , Destination:=Range("A1")) .Name = "ChemicalData" .FieldNames = True .RowNumbers = False .FillAdjacentFormulas = False .PreserveFormatting = True .RefreshOnFileOpen = False .BackgroundQuery = False ' << note default is True .RefreshStyle = xlInsertDeleteCells .SavePassword = False .SaveData = True .AdjustColumnWidth = True .RefreshPeriod = 0 .WebSelectionType = xlEntirePage .WebFormatting = xlWebFormattingNone .WebPreFormattedTextToColumns = True .WebConsecutiveDelimitersAsOne = True .WebSingleBlockTextImport = False .WebDisableDateRecognition = False .WebDisableRedirections = False .Refresh BackgroundQuery:=False End With End Sub ' and to update - Sub RefreshQ() Dim qt As QueryTable Set qt = ActiveSheet.QueryTables("ChemicalData") 'qt.BackgroundQuery = False qt.Refresh End Sub Regards, Peter T "Roger on Excel" wrote in message ... There is a internet page with chemical data : http://spreadsheets.google.com/pub?k...CQ&output=html It has chemicals in the first column and proerties in adjacent columns. Is there a way to have a userform lookup a chemical in a textbox from the websites 1st column and then populate other textboxes with the adjacent data from the table? Can anyone help? Thanks, Roger |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help with retrieving data from a table | Excel Worksheet Functions | |||
Retrieving data from a table | Excel Discussion (Misc queries) | |||
Retrieving data from another table or array .. | Excel Worksheet Functions | |||
Retrieving Exchange Rate Data from a Website | Excel Programming | |||
Retrieving Source Data From Pivot Table | Excel Programming |