jamieleeuk
Board Regular
- Joined
- Feb 9, 2009
- Messages
- 99
Hi,
I have recorded the following code by doing CTRL+F, entering a search string and pressing Find.
Sub test()
' Cells.Find(What:=***THE VALUE IN CELL W3***, After:=ActiveCell, LookIn:=xlFormulas, LookAt
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
End Sub
Please can someone let me know what I need to put in place of the above ***THE VALUE IN CELL W3*** to enable a user to enter a search string in cell W3 and for it (if a matching value found) for it to become the active cell?
thanks in advance
Jamie
I have recorded the following code by doing CTRL+F, entering a search string and pressing Find.
Sub test()
' Cells.Find(What:=***THE VALUE IN CELL W3***, After:=ActiveCell, LookIn:=xlFormulas, LookAt
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
End Sub
Please can someone let me know what I need to put in place of the above ***THE VALUE IN CELL W3*** to enable a user to enter a search string in cell W3 and for it (if a matching value found) for it to become the active cell?
thanks in advance
Jamie