Hi!
Within a macro ...I want to look at one cell ...then use the unique number in that cell to find and goto the cell that contains that same unique number in a List.
What's the simplest way to do it ??
Thanks,
Colin
Hi!
Within a macro ...I want to look at one cell ...then use the unique number in that cell to find and goto the cell that contains that same unique number in a List.
What's the simplest way to do it ??
Thanks,
Colin
This example assumes the unique value is in A1 of sheet 2 ... and list is on Sheet1 A1:A500
Public Sub FindInList()
On Error GoTo errr:
ValueToFind = Trim(Sheets("Sheet2").Range("A1").Value)
Worksheets("Sheet1").Activate
Worksheets("Sheet1").Range("a1:a500").Find(ValueToFind, LookIn:=xlValues, lookat:=xlWhole).Activate
Exit Sub
errr: pt = MsgBox(ValueToFind & " not found", vbCritical, "Not Found")
End Sub
Great!
Thanks guys .... works a dream !
Colin
Don’t have an account yet? Register yourself now and be a part of our community!