I have this code that is using xlDown to determine the last row of data (minus 1) but I need to go to a defined column. So the selection would be as follows: Go to A6 then do an xlDown -1 Then select the resulting row from xlDown and combine it with column BU
As an example, if the result from the xlDown is row 89 then the range to select should be A6:BU89 I tried using the xlRight but the data is inconsistent and can have blank columns in different places but I always want to go to column BU.
I can't seem to get it right, can someone help me out?
Sub AAPrepare_Pipeline_Data() Range("A6").Select Range(Selection, Selection.End(xlDown).Offset(-1)).Select 'Range(Selection, Selection.End(xlToRight)).Select Selection.Copy End Sub