+ Reply to Thread
Results 1 to 4 of 4

Excel VBA Userform to search multiple worksheets

Hybrid View

  1. #1
    Registered User
    Join Date
    07-21-2019
    Location
    West Coast, USA
    MS-Off Ver
    365
    Posts
    31

    Excel VBA Userform to search multiple worksheets

    First, some context...

    I have a userform that users complete to capture the salesperson, product ID, product category, revenue amount, and sales date. There is a submit button that funnels the data into 1 of 5 seperate worksheets that are based on product category selected in the userform:

    Industrial, consturction, maintenance, hospitality, administrative

    (All of the worksheets are formatted exactly the same with the salesperson in column C - it's just to keep the categories separate)

    *** This part works great ***


    Now, I want to create a userform to search for the salesperson across all 5 worksheets and display the results into a listbox. Then, I can double-click one of the results to open the original userform that was completed for the details of that item and/or make edits if needed. Again, the worksheets are all formatted exactly the same, with the Salesperson in column C.

    How would I accomplish this?
    Last edited by BarnieFife; 01-22-2025 at 12:06 PM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,820

    Re: Excel VBA Userform to search multiple worksheets

    Fast answers need clear examples.

    Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Valued Forum Contributor MikeVol's Avatar
    Join Date
    12-30-2020
    Location
    Odessa / Ukraine
    MS-Off Ver
    MSO Prof Plus 2021 x64 (En)
    Posts
    482

    Re: Excel VBA Userform to search multiple worksheets

    Cross posted at: Excel VBA Userform to search multiple worksheets
    NOTE: As the original poster/owner, only you can mark your thread as SOLVED (Thread Tools above Post #1).
    You can say "Thanks" in your thread to everyone who offered to help you.
    You can also reward them by clicking * "Add Reputation" under their username on the left.
    With Regards, MikeVol.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,889

    Re: Excel VBA Userform to search multiple worksheets

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so. Cross-posts are allowed but you must provide a link to your posts on other sites.
    For new members: you will not be able to post a full URL, so remove the https://www. section and add one or two breaks to the rest of the address. A Moderator or Admin will then fix the link for you.

    Please see Forum Rule #7 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important: https://excelguru.ca/a-message-to-forum-cross-posters/

    Thanks to MikeVol for providing the link. However, we prefer that the OP provides it in post #1.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Search Multiple Worksheets using a Userform and display in listbox.
    By nathandavies in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 11-18-2014, 10:22 AM
  2. Userform search from multiple worksheets
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-19-2013, 03:09 PM
  3. Please help for Userform Search and Replace for multiple worksheets
    By gopala in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-24-2013, 12:27 PM
  4. userform to search multiple worksheets
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-03-2013, 08:42 AM
  5. VBA: Userform search from multiple worksheets
    By jyl_woo in forum Excel General
    Replies: 1
    Last Post: 03-29-2011, 09:52 AM
  6. VBA: Userform search from multiple worksheets
    By jyl_woo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-29-2011, 09:38 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