Hi Guys,
I've hit a bit of a wall. I'm trying to copy & paste calls depending on the value of another cell in the same row. So far I have this:
I'm getting an error on the second row (the if statement). In basic terms what I am after is if the G column of the active row in sheet "Data" matches the active column, row 1 in sheet "Rack A" then paste the active cell in "Data" to the active cell in "Rack A".
Thanks guys
I've hit a bit of a wall. I'm trying to copy & paste calls depending on the value of another cell in the same row. So far I have this:
Code:
Do Until IsEmpty(ActiveCell)
If Sheets("Data").Range("G" & ActiveCell.Row).Value = Sheets("Rack A").Range(ActiveCell.Column & "1").Value Then
ActiveCell.Copy
ActiveCell.Offset(1, 0).Select
Worksheets("Rack A").Select
ActiveCell.PasteSpecial
Worksheets("Data").Select
ActiveCell.Offset(1, 0).Select
Else
ActiveCell.EntireRow.Copy
Worksheets("FloorRoomWorkstation No Update").Select
ActiveCell.PasteSpecial
ActiveCell.Offset(1, 0).Select
Worksheets("Data").Select
ActiveCell.Offset(1, 0).Select
End If
Loop
I'm getting an error on the second row (the if statement). In basic terms what I am after is if the G column of the active row in sheet "Data" matches the active column, row 1 in sheet "Rack A" then paste the active cell in "Data" to the active cell in "Rack A".
Thanks guys
Last edited: