+ Reply to Thread
Results 1 to 7 of 7

Search for stack number using input

  1. #1
    Registered User
    Join Date
    05-23-2007
    Location
    Plant City, Florida
    Posts
    3

    Search for stack number using input

    I am attempting to create a workbook that allows our employees to search for the status of a product by putting in the stack number (sort of like a serial number) and the sheet be brought up. I would like to have the employee type in a stack number and the cursor go to the location of the matching stack number (Similar to a Find function).

    Thanks for the help.
    Attached Files Attached Files

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe with an event macro.

    Right click sheet tab > select view code > paste in the below

    Please Login or Register  to view this content.
    VBA Noob
    Last edited by VBA Noob; 09-03-2008 at 05:42 PM.
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    try this code
    insert in standard module then assign to a forms button on first page
    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561
    Hi guys,

    I don't mean to sound a smart alec with this, what's wrong with find? It already has a keyboard shortcut, Ctrl+f!

    As far as I can tell, Martin's code is simply a (neatly written and executed) code of Excel's native find functionality.

    I am not trying to be clever - what's the point/difference?

    Cheeky Curious Charlie

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    what's wrong with find? It already has a keyboard shortcut, Ctrl+f!
    Depends on the OP requirement

    My method runs when a correct code is entered which is quicker than pressing Ctrl + F then options > search workbook

    VBA Noob
    Last edited by VBA Noob; 09-03-2008 at 05:57 PM.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    1.it looks nice!
    put into workbook open voila!(which incidently i forgot to suggest)
    2.besides which my excel 97 doesnt have that function.
    3. most users dont even know 1/10th of excels native functions.
    i have macros that do all sort of things,just tell the user to click button its far easier than teaching them say go to edit/special/last cell.
    they are there just to use the dang thing not worry about how it's done.
    4. it also gives op an insight to what can be achieved,and they may go on to be the next Ron de Bruin(all praise his name,we're not worthy: lol)
    Last edited by martindwilson; 09-03-2008 at 07:24 PM.

  7. #7
    Registered User
    Join Date
    05-23-2007
    Location
    Plant City, Florida
    Posts
    3

    Thanks

    Thanks VBA and Martin. This will work perfectly. Cheeky to the point of why I didn't want to use a simple Cntrl - f function - VBA abd Martin hit the point on the head. I have a workforce of non computer literate people and the simpler I can make it, the better.

    Thanks again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Creating a serach-database for various input
    By HenkE\\\ in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-26-2007, 10:41 AM
  2. Search for Range not single number
    By jonn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-16-2007, 09:45 AM
  3. Search for Range not single number
    By jonn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-12-2007, 08:28 AM
  4. Search Function
    By jonn in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-03-2007, 03:26 AM
  5. number puzzle
    By mkron in forum Excel General
    Replies: 14
    Last Post: 01-28-2007, 12:13 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1