Hi,
I'm still relatively new to VBA. I've worked out how to create a web query macro to pull data from a url and then referencing the second part of the url within a certain cell with the following code at the beginning of the macro:
But there's a few things I can't work out how to do that I'd like some help on:
1. I'd actually like to run the macro from a separate sheet (separate tag on same workbook) so at the top I'd like to reference cell A1 on one sheet (call it Sheet1) but have the resulting data pasted into Sheet2 (starting at cell A1). I can't work out how to do that so some help appreciate there.
2. Also, the above only does one query on the one page, but is there a way I could get the macro to then continue running vs. references in e.g. cell A2, A3, A4 etc. just stopping when it hits a blank cell? I know I can just copy and paste my code down and change the cell reference, but the problem I have is then how do I reference the destination cell to start at the next blank row so it doesn't overwrite the previous data. Also maybe there is a cleaner, simpler way to get the macro to repeat downwards rather than copy and paste, but if so how do I do it and how do I get it to stop (or would it just stop when it hits a blank cell with no reference.
Hope that's all clear and any help appreciated.
Thanks!
Bookmarks