Hey mr.Excel
I'm trying to make a marco that seach the active sheet for the value of the sheet FAM cell A1. Is this possibel to do??.
Hoping to can help me see what is wrong with me code
I'm trying to make a marco that seach the active sheet for the value of the sheet FAM cell A1. Is this possibel to do??.
Code:
Dim i, lastrow
For i = 1 To lastrow
If ActiveSheet.Cells(i, "G").Value = Worksheets("FAM").Cells(A1).Value Then
ActiveSheet.Cells(i, "G").EntireRow.Copy Destination:=Sheets("Counting").Range("A" & Rows.Count).End(xlUp).Offset(1)
End If
Next i
Hoping to can help me see what is wrong with me code