Hi, as the title says, I'm trying to work thru some code to select data in 3 different columns which will ultimately be pasted onto a separate tab. I tried first just using ".select" after the ranges to see if the code was actually grabbing the correct info before I change that line to ".copy". I want to select A5 thru the last row of data of column B, and then from L5 thru the last column of Data in that same column. So columns A, B, and L. I tried:
but am getting an error. I haven't had to use multiple non-consecutive ranges like that before in coding, so I can only try and guess at what it would be if it's actually doable. I am wondering what the codeline would be if it is or if you have to declare a variable?
VBA Code:
Range("A5:B5", Range("B5").End(xlDown) & Range("L5").End(xlDown)).Select
but am getting an error. I haven't had to use multiple non-consecutive ranges like that before in coding, so I can only try and guess at what it would be if it's actually doable. I am wondering what the codeline would be if it is or if you have to declare a variable?