Hello Mr. Excel Community
Since 5 hours I am struggling with the following code, which I'd love to expand.
I simply want to mimic the built in ctrl + F search tool via an Input Box, adding the feature to stay in row/column (ActiveCell) while looking for the name (letters not numbers).
Could anyone of the pros help me out?
Cheers
Matteo
Since 5 hours I am struggling with the following code, which I'd love to expand.
I simply want to mimic the built in ctrl + F search tool via an Input Box, adding the feature to stay in row/column (ActiveCell) while looking for the name (letters not numbers).
VBA Code:
Sub Jarvis()
Dim sResult As String
On Error Resume Next
sResult = InputBox("")
If IsNumeric(sResult) Then 'Select row
Cells(sResult, ActiveCell.Column).Select
Else 'Select column - Here I want to add a way to search for names/values and to jump to them, while staying in the current column - Unfortunately didn't find the suiting command
Cells(ActiveCell.Row, sResult).Select
End If
End Sub••••ˇˇˇˇ
Could anyone of the pros help me out?
Cheers
Matteo