I have a worksheet, "data". Column 'B' searches for cells to last row with data and pastes to the right over writing data, which is ok. Currently this works ok for cell 'B', but I am trying to redo the code to copy cell 'C' also to move cells 'B' and 'C' to the right but this is not working. See following code I am trying.
Appreciate any guidance you can give as I have been trying to complete coding for the last year and this is my first post. May need help on protocols also during posting.
lr = ActiveSheet.UsedRange.Rows.Count
For a = 2 To lr
If Cells(a, 2).Value <> "" Then
Cells(a, 7).Value = Cells(a, 2).Resize(, 2).Value
End If
Next a
Appreciate any guidance you can give as I have been trying to complete coding for the last year and this is my first post. May need help on protocols also during posting.
lr = ActiveSheet.UsedRange.Rows.Count
For a = 2 To lr
If Cells(a, 2).Value <> "" Then
Cells(a, 7).Value = Cells(a, 2).Resize(, 2).Value
End If
Next a