Hello there try this
Dim x As String
x = ActiveCell.Value 'set the value of the activecell, unique ref number cell selected to x
With Sheets("Detail List") 'with the worksheet Detail List
.Select 'select the worksheet
.Cells.Find(what:=x, after:=.Range("A1")).Activate 'find the cell whose value is equal to x and activate it
End With
to insert this code into your workbook
1. Press Alt+F8 on your keyboard.
2. Clear the macro name box and enter FindRefNo
3. Then select the Create option
4. In between the Sub FindRefNo( ) and End Sub copy and paste the above code.
5. Exit out of Visual Basic.
6. Press Alt+F8 again
7. Select the FindRefNo macro and then selection Options
8. Assign a Ctrl+ key to your macro. For this example place q in the empty box next to Ctrl+
9. Select Okay and close the macro window.
10. Select the cell whose ref number you want to search for and then hit Ctrl+q on your keyboard.
Let me know if this works for you!
Thanks!
Bookmarks