Background: Excel 2003
Sample file attached herewith.
Cell D1, has working date, immediate preceding today.
Based on G1 value, past 'n'days, date in Cell B1 (D1-G1) is worked out again to have working day(not weekends).
So, we will have From Date (B1) TO Date (D1) Range for data selection.
Cell A4, A5,A6 would have distinguisher for which data has to be pulled from a website within above date range limit.
Cell B4, B5,B6 and so on in Column B, would generate dynamic web URL based on Cell A4,A5,A6 in combination with DATE range given above. (Sample URL given).
If this is done on screen, the screen would appear as given in the attached excel, with option to download these data in CSV format.
Query/Help sought:
Now, I want a VBA Macro that could import the CSV file in separate sheet, rename it to the corresponding Cell value, say A4, if already does not exist. If Sheet with name Cell A4 already exisit, macro should first clear all data, and then import the data specified above.
Thanks
Bookmarks