I have been trying to figure this out for a while but can’t get it to work, since the macro code need to be a little more dynamic. I am new to writing macros and would really appreciate your help.
I have Sheet1 with two ranges:
- The first Range is from A2:MXXX (depending on how many rows I evaluate)
The second range is A3001:M3XXX (also depending on how many rows I evaluate).
- I want to copy the first range until the last row in column A that contains a value to Sheet2.
- Then, I want to copy the second range until the last row in column A that contains a value and put it right after the first range in Sheet2.
- Then I want to sort the new combined range based on column B. (Ascending)
- Then if possible export the sorted and combined range to .csv
(Please note, that I only want to copy the values in each cell, not the formulas).
Many Thanks, Adam