+ Reply to Thread
Results 1 to 5 of 5

need help to create a workbook search

  1. #1
    Registered User
    Join Date
    10-13-2011
    Location
    hollywood
    MS-Off Ver
    Excel 2010
    Posts
    35

    need help to create a workbook search

    hello. im a newbie here, and in need of help. i am not a pro on excel, however, know enough to get around. i have excel 2010 and use it to enter my expenses in my workbook. each workbook has an individual worksheet for each of my clients, upto 50 worksheet in each workbook. each worksheet is numbered exclusively for each client.

    question: how can i write a formula or put in a lookup so i only enter my clients number to pull up the worksheet instead of searching the workbook for a specific worksheet.

    thanks!

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: need help to create a workbook search

    Suggest using a macro like this.

    Please Login or Register  to view this content.
    Open up the VBA editor by hitting ALT F11

    Insert a new module by hitting Insert - Module

    Paste the macro into the empty sheet

    Hit ALT F11 to get back to the worksheet.

    Run the macro by going to tools-macro in Excel 2003 or the view ribbon in Excel 2007.
    Martin

  3. #3
    Registered User
    Join Date
    10-13-2011
    Location
    hollywood
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: need help to create a workbook search

    EXCELLENT! worked like charm.
    please, now how can i have a cell with this formula so that i ONLY have to enter the worksheet name to find it.

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: need help to create a workbook search

    Paste this code into the approproriate sheet tab in the VBA editor (Sheet1 for example).

    Please Login or Register  to view this content.
    Adapt the above to contain the address of the cell in which you wnat to enter the sheet name if it is not $A$1.

  5. #5
    Registered User
    Join Date
    10-13-2011
    Location
    hollywood
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: need help to create a workbook search

    hello all. thanks for the formula. has been working great. but there is a bug. i have over 6 workbooks with 50 worksheets in each workbook. the macro search is excellent. however, when i run the macro, opens up another workbook, the original book installed the formula. is there a fix? and also, how do i set a CNRL R button for the macro.

    thanks guys!

+ 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