I want to say that if in the one cell (i,2) contains the text "Lala" and another cell (i,9) contains the text "Active" that it should copy the content of the cells 3 and 4.
Unfortunately my code is not working with the second condition - without it's running. So can anyone tell me how to write it correctly?
If there stands "Deactive" it shouldn't copy the content.
If Cells(i, 2) = "Lala" And Cells(i, 9) = "Active" Then
Range(ActiveSheet.Cells(i, 3), ActiveSheet.Cells(i, 4)).Select
Selection.Copy
SOLVED! Solution is:
If ActiveSheet.Cells(i, 2).Value = "Lala" And ActiveSheet.Cells(i, 9).Value = "Active" Then
Range(ActiveSheet.Cells(i, 3), ActiveSheet.Cells(i, 4)).Select