try this code Sub Macro1()
Dim i As Date, j As Long Application.ScreenUpdating = False For i = DateSerial(2013, 1, 1) To DateSerial(2013, 1, 10) ' change start date and end date With ActiveSheet.QueryTables.Add(Connection:= _ "URL; http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=IBUCKSIV1&day=" & Day(i) & "&month=" & Month(i) & "&year=" & Year(i) & "&graphspan=day&format=1" _ , Destination:=Range("a1048576").End(xlUp).Offset(1, 0)) .Name = _ "t_" & i .FieldNames = True .RowNumbers = False .FillAdjacentFormulas = False .PreserveFormatting = True .RefreshOnFileOpen = False .BackgroundQuery = 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 Next ' For j = Range("a1048576").End(xlUp).Row To 1 Step -1 ' If Range("a" & j).Value = "<br>" Then Range("a" & j).EntireRow.Delete ' Next Application.ScreenUpdating = True End Sub On Wed, May 14, 2014 at 1:08 AM, Frank Zolf <anthonyfoxtr...@gmail.com>wrote: > > Hi Guys! Everyone is welcome. > > Here's the website for a Personal Weather Station in London: > > http://www.wunderground.com/personal-weather-station/dashboard?ID=IBUCKSIV1#history/data/s20100101/e20140513/mcustom > > It features a option to produce CSV data of any single day, in intervals > of 5 minutes. If you specify January, 1st, 2010, you link you get looks > like this: > > http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=IBUCKSIV1& > *day=1*&*month=1*&*year=2010*&graphspan=day&format=1 > > This is not a dynamic entry or table, so you can edit the URL directly, > and get the desired result: > > http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=IBUCKSIV1&day= > *1*&month=1&year=2010&graphspan=day&format=1 > > http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=IBUCKSIV1&day= > *2*&month=1&year=2010&graphspan=day&format=1 > > http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=IBUCKSIV1&day= > *3*&month=1&year=2010&graphspan=day&format=1 > ... > > http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=IBUCKSIV1&day= > *1*&month=*3*&year=*2010*&graphspan=day&format=1 > > > But no other changes can increase the length of the resulting output! The > output will only contain less data. So, it has to move down this list, or a > list like it. > > *Is there a way to make a macro to move down the list of URLs and save the > outputs into one file?* CSV or excel formats both ok. > > -- > Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s > =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ > https://www.facebook.com/discussexcel > > FORUM RULES > > 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) Jobs posting is not allowed. > 6) Sharing copyrighted material and their links is not allowed. > > NOTE : Don't ever post confidential data in a workbook. Forum owners and > members are not responsible for any loss. > --- > You received this message because you are subscribed to the Google Groups > "MS EXCEL AND VBA MACROS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to excel-macros+unsubscr...@googlegroups.com. > To post to this group, send email to excel-macros@googlegroups.com. > Visit this group at http://groups.google.com/group/excel-macros. > For more options, visit https://groups.google.com/d/optout. > -- *Regards* *Ashish Koul* *Visit* http://www.excelvbamacros.in Like Us on Facebook <https://www.facebook.com/excelvbacodes> Join Us on Facebook <http://www.facebook.com/groups/163491717053198/> P Before printing, think about the environment. -- Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 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) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups "MS EXCEL AND VBA MACROS" group. To unsubscribe from this group and stop receiving emails from it, send an email to excel-macros+unsubscr...@googlegroups.com. To post to this group, send email to excel-macros@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros. For more options, visit https://groups.google.com/d/optout.