Don Guillett SalesAid Software dguille...@gmail.com-----Original Message----- From: Alberto
Sent: Monday, January 02, 2012 8:32 AM To: MS EXCEL AND VBA MACROS Subject: $$Excel-Macros$$ Query from URL Hi, I use VBA to retrieve wheather data. This work: With ActiveSheet.QueryTables.Add(Connection:= _ "URL;http://www.osmer.fvg.it/~www/IT/SYN/ TabellaStazioniUltimOra.php", _ But with the address below it retrieves nothing ( and no error message too). The same with http://weather.uwyo.edu/cgi-bin/sounding?region=europe&TYPE=TEXT%3ALIST&YEAR=2012&MONTH=01&FROM=0200&TO=0200&STNM=16044 Some help? thanks Alberto Full query, with parameter: With ActiveSheet.QueryTables.Add(Connection:= _ "URL;http://wwwold.meteoam.it/modules/DCP/infoStazione.php? locality=16409&TypeMsg=Synop&Data=2012-01-01%2015:00:00", _ Destination:=Range("B2")) .TablesOnlyFromHTML = False .FieldNames = True .RowNumbers = False .FillAdjacentFormulas = False .PreserveFormatting = False .RefreshOnFileOpen = False .BackgroundQuery = True .RefreshStyle = xlOverwriteCell .SavePassword = False .SaveData = True .AdjustColumnWidth = False .RefreshPeriod = 0 .WebSelectionType = xlSpecifiedTables .WebFormatting = xlWebFormattingNone .WebTables = "4" .WebPreFormattedTextToColumns = True .WebConsecutiveDelimitersAsOne = True .WebSingleBlockTextImport = False .WebDisableDateRecognition = False .WebDisableRedirections = False .Refresh BackgroundQuery:=False End With -- FORUM RULES (934+ members already BANNED for violation)1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered.
2) Don't post a question in the thread of another member.3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited.
NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss.
------------------------------------------------------------------------------------------------------To post to this group, send email to excel-macros@googlegroups.com
-- FORUM RULES (934+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad.5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited.
NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com
WebFetchWeatherData.xls
Description: MS-Excel spreadsheet