Hi,
Can this be done without having to Activate each sheet? I have two sheets "Database" and "RoB".
AMAS
Can this be done without having to Activate each sheet? I have two sheets "Database" and "RoB".
Code:
For x = 2 To LastRow
If Range("A" & x) <> Range("A" & x).Offset(-1, 0) Then
If (Application.CountIf(Range("A:A"), Range("A" & x)) - Application.CountIfs(Range("A:A"), Range("A" & x), Range("Q:Q"), "No RoB")) = 0 Then
Sheets("Database").Activate
With Sheets("Database")
.Columns("A:A").Find(What:=Worksheets("RoB").Range("A" & x), After:=Range("A1"), _
LookAt:=xlValue, SearchOrder:=xlByRows, SearchDirection:=xlNext).Offset(0, 13).Activate
End With
ActiveCell.Value = "No RoB"
Sheets("RoB").Activate
End If
End If
Next x
AMAS