search or goto command needed.

  • Thread starter Thread starter mightymax
  • Start date Start date
M

mightymax

I have a form with 20 field the user can fill in. The first field is
numeric which is used as a "ticket ID". The fields all ente
information into an Excel spreadsheet.

The situation is I need to have a search or goto button where ther use
can input there number into a text box and all the information relate
to this number is displayed.

btnSearch
txtSearch

The goal here is to provide a check out and check in system. Bu
without the search function my users have to click the next button t
get to their number. Which is taking way to long.

Help
 
set rng = worksheets("Data").Columns(1).Cells
set rng1 = rng.find(Userform1.txtSearch.Text)
if not rng1 is nothing then
Userform2.Textbox2.Text = rng1.offset(0,1)
Userform3.Textbox3.Text = rng1.Offset(0,2)
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top