S
scottnshelly
hello,
I am trying to make a macro that will be user-friendly. I want it t
pop up an input box and ask for an agent's ID number, then go to th
database page and do a search for the ID number entered into the inpu
box. i have tried for about 3 hours now to make this work with n
avail. any suggestions?
here is what i have been trying:
Private Sub CommandButton1_Click()
Dim varInput As Integer
varInput = InputBox("ID", "SEARCH FOR AGENT'S ID NUMBER")
Sheets("database").Range("iv1").Value = varInput
Sheets("DATABASE").Select
Cells.Find(What:=(here is my mail problem), After:=ActiveCell
LookIn:=xlFormulas, LookAt
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext
MatchCase:= _
False, SearchFormat:=False).Activate
Selection.Copy
end sub
Thank
I am trying to make a macro that will be user-friendly. I want it t
pop up an input box and ask for an agent's ID number, then go to th
database page and do a search for the ID number entered into the inpu
box. i have tried for about 3 hours now to make this work with n
avail. any suggestions?
here is what i have been trying:
Private Sub CommandButton1_Click()
Dim varInput As Integer
varInput = InputBox("ID", "SEARCH FOR AGENT'S ID NUMBER")
Sheets("database").Range("iv1").Value = varInput
Sheets("DATABASE").Select
Cells.Find(What:=(here is my mail problem), After:=ActiveCell
LookIn:=xlFormulas, LookAt
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext
MatchCase:= _
False, SearchFormat:=False).Activate
Selection.Copy
end sub
Thank