Excel VBA Userform to search multiple worksheets

ExcelEndeavor

New Member
Joined
Oct 13, 2020
Messages
27
Office Version
  1. 365
Platform
  1. MacOS
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?
 
I can't download your file.
You can share it on google drive or dropbox.
Since your file identifies it as a google sheet file.
 
Upvote 0

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
By the way, were you able to test my file and identify how I have the code in the userform?
 
Upvote 0
By the way, were you able to test my file and identify how I have the code in the userform?
I couldn't get it to work on my end. I think I am not doing something right. I sent the share link for google drive - were you able to download the file by chance?
 
Upvote 0
I couldn't get it to work on my end. I think I am not doing something right. I sent the share link for google drive - were you able to download the file by chance?
I couldn't download the file. I mentioned it in post #11, you shared the link to see the file on Google, but I can't download the file.
Try uploading your file to Google Drive again.
 
Upvote 0
I couldn't download the file. I mentioned it in post #11, you shared the link to see the file on Google, but I can't download the file.
Try uploading your file to Google Drive again.
I just added you as an editor and re-shared. Let's see if that works
 
Upvote 0
I just added you as an editor and re-shared. Let's see if that works
I don't see your file as macro-enabled excel, I only see it as normal excel, and I can't download it with macros, therefore I don't see the forms.

I insist, you were able to download my file. So you can see how I put the code and replicate it in your file.

Or create another copy and share the file again. But try dropbox.
 
Upvote 0
I don't see your file as macro-enabled excel, I only see it as normal excel, and I can't download it with macros, therefore I don't see the forms.

I insist, you were able to download my file. So you can see how I put the code and replicate it in your file.

Or create another copy and share the file again. But try dropbox.
I just put it in dropbox...

Dropbox Link
 
Upvote 0
I already have your file 😅

At first glance, I found that you made several changes to my code.

Let me check what else you changed and get it working 😇


1737732170038.png
 
Upvote 0
I keep finding changes to my original code 😅

I keep checking...

1737732677242.png
 

Attachments

  • 1737732523185.png
    1737732523185.png
    35.8 KB · Views: 2
Upvote 0

Forum statistics

Threads
1,226,113
Messages
6,189,048
Members
453,522
Latest member
Seeker2025

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top