Hi, I have been trying to merge a range of cells.
I have tryed with .Merge & .MergeCells and it keeps telling me there is an error
LastRow = Cells(Rows.Count, "D").End(xlUp).Row
If LastRow > 2 Then
Range(Cells(2, 2), Cells(LastRow, 2)).MergeCells = True
Range(Cells(2, 3), Cells(LastRow, 3)).MergeCells = True
End If
Thanks in advance
I have tryed with .Merge & .MergeCells and it keeps telling me there is an error
LastRow = Cells(Rows.Count, "D").End(xlUp).Row
If LastRow > 2 Then
Range(Cells(2, 2), Cells(LastRow, 2)).MergeCells = True
Range(Cells(2, 3), Cells(LastRow, 3)).MergeCells = True
End If
Thanks in advance