As pointed out in this thread, I'm currently trying to write a macro that will pull some data from one sheet to another. This macro will be executed weekly when finished. The problem is that there is a different sheet is active for each week in the source workbook. The worksheet tabs on the workbook are as follows:
"Wk1, Wk2, Wk3, Wk4 ... Wk44"
Each of these weekly worksheets are identical in layout and format. The only difference is the data.
My question is, how do I write into my macro that I want the code to refer to the latest week when extracting data, even when the worksheet for some weeks (e.g. Wk45-Wk52) might not exist within the source workbook yet?
Thanks alot!
"Wk1, Wk2, Wk3, Wk4 ... Wk44"
Each of these weekly worksheets are identical in layout and format. The only difference is the data.
My question is, how do I write into my macro that I want the code to refer to the latest week when extracting data, even when the worksheet for some weeks (e.g. Wk45-Wk52) might not exist within the source workbook yet?
Thanks alot!