Im trying to copy cells in column B, at first I was copying until the cell was blank and used this code.
With Range("b21")
Range(.Cells(1, 1), .End(xlDown)).copy Destination:=Worksheets("Copy").Range("e3")
End With
But in some of the files that use this macro, there are spaces in between cell values. The range I am looking for will always start at cell B21 and always end with the Cell Text of "Total" in column B.
Does anyone know how I can change this to copy every cell in column b from cell B21 down to a cell that says "Total"? Is it possible to ignore blank cells when doing this? If not I can remove blank cells at the end of my code
Thanks,
James
With Range("b21")
Range(.Cells(1, 1), .End(xlDown)).copy Destination:=Worksheets("Copy").Range("e3")
End With
But in some of the files that use this macro, there are spaces in between cell values. The range I am looking for will always start at cell B21 and always end with the Cell Text of "Total" in column B.
Does anyone know how I can change this to copy every cell in column b from cell B21 down to a cell that says "Total"? Is it possible to ignore blank cells when doing this? If not I can remove blank cells at the end of my code
Thanks,
James