Hi there,
I'm trying to set up a "find / next / replace" input box, but I have no clue how to make vb do this. Currently my code has a three step process. I have an input box that asks for a variable to find. Then when it's found, it puts it all the information on a given row into a spreadsheet. This would work just fine if there was only one row with the requested info. This is the code I have for the find function:
[CODE=vb]LookFor = InputBox("what is the client name?", "Search")
If LookFor = "" Then
End
End If
Cells.Find(What :=LookFor, After:=ActiveCe ll, LookIn:=xlFormu las, LookAt _
:=xlPart, SearchOrder:=xl ByRows, SearchDirection :=xlNext, MatchCase:= _
False, SearchFormat:=F alse).Activate[/CODE]
Of course I got this from using a macro. I can even add a line for a find next, but I don't have the correct input box to make this work.
I'd appreciate the help!
I'm trying to set up a "find / next / replace" input box, but I have no clue how to make vb do this. Currently my code has a three step process. I have an input box that asks for a variable to find. Then when it's found, it puts it all the information on a given row into a spreadsheet. This would work just fine if there was only one row with the requested info. This is the code I have for the find function:
[CODE=vb]LookFor = InputBox("what is the client name?", "Search")
If LookFor = "" Then
End
End If
Cells.Find(What :=LookFor, After:=ActiveCe ll, LookIn:=xlFormu las, LookAt _
:=xlPart, SearchOrder:=xl ByRows, SearchDirection :=xlNext, MatchCase:= _
False, SearchFormat:=F alse).Activate[/CODE]
Of course I got this from using a macro. I can even add a line for a find next, but I don't have the correct input box to make this work.
I'd appreciate the help!
Comment