Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default search or goto command needed.

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

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default search or goto command needed.

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

--
Regards,
Tom Ogilvy


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

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

btnSearch
txtSearch

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

Help!


---
Message posted from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
command code ( GOTO command) in formula calan New Users to Excel 1 June 11th 09 09:44 AM
Search and Goto Dgwood90 Excel Discussion (Misc queries) 1 September 28th 07 01:57 AM
Command Button Error - Help Needed Urgently Please Salman Excel Worksheet Functions 2 March 7th 07 10:24 AM
USING A GOTO COMMAND IN EXCEL gscar2005 Excel Worksheet Functions 1 February 9th 05 05:30 AM
If search criteria is not found, then goto Repeat? PCLIVE Excel Programming 2 March 5th 04 07:52 PM


All times are GMT +1. The time now is 09:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"