+ Reply to Thread
Results 1 to 6 of 6

Find and go to product code in a list of products

  1. #1
    Registered User
    Join Date
    06-05-2013
    Location
    DURBAN SOUTH AFRICA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Find and go to product code in a list of products

    Hi guys,

    I have a list of product specs, over 300, and need to be able to be able to select one from this list by product code that appears on the spec and go to it on the list, I know I can do this with the Find &Replace function but need to be able to do it using a command button any suggestions?

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Find and go to product code in a list of products

    Hi ALANBERNARD,

    Welcome to the forum

    Use Vlookup.... If possbile attach a sample workbook with expected output so that we can assist you further

    To know how to attach a file, please refer my signature area


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    06-05-2013
    Location
    DURBAN SOUTH AFRICA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Find and go to product code in a list of products

    Hi Sixthsense,
    Many thanks for the reply but VLOOKUP doesn't get me to the required product spec. I have tried attaching a file but no joy. the little circle that goes round and round will still be going round next week. I need to be able to enter a product code in a cell (on the same sheet as all the product specs) and then, by clicking the command button, go straight to this product spec in the list of product specs. I will write a little macro to attach to the command button. It needs to operate the same way as find & replace function I hope I am being clear.
    AlanBernardPRODUCT SPEC.xlsm

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Find and go to product code in a list of products

    Yes it's better to go for code solution

    Select Design Mode in Developer Tab and do right click on command button and select View Code and paste the below code. Return to excel and Deselect Design mode and enter product code in L11 cell click the command button.

    Please Login or Register  to view this content.

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Find and go to product code in a list of products

    A fairly simple way with formula.

    1/. Extract a list of "Product Codes" from Column H, See the Names Manager for the Dynamic Names used.

    2/. Use this list for Data Validation in K11.

    3/. Use Conditional formatting to highlight the header row of the required table.

    This will work for any amount of tables of any size provided that the header rows in column G begin with "product", case doesn't matter.
    To get it to scroll to the fable you will need to use VBa.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Find and go to product code in a list of products

    Try this workbook if you need to auto-scroll to the target table.
    It uses the Worksheet_Change event rather than a Button, Buttons in my opinion should be avoided if possible.
    Please Login or Register  to view this content.
    Select from the drop-down in K2

    The sheet is built the same way as that in Post #5
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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