Make a dropdown based on all the unique values in a column

SandsB

Well-known Member
Joined
Feb 13, 2007
Messages
705
Office Version
  1. 365
Platform
  1. Windows
I get a daily file with about 1,000 records and each one is assigned to one of 15 (give or take) employees. The ID number of those people is in column B. Every day I run a macro on that file to generate a report of each record's status. I want to add something to my macro so that each of the employees can run a report for just the records they are responsible for.

I think the best way to do that is have the macro start off by prompting them for their employee ID - it's a string of 3 letters and 2 numbers. EX: ABC123. (Actually, I think a drop down based on the IDs in the day's file would be better because it would eliminate the possibility for typos but doing that seems infinitely more complicated).

If I get the user's ID by having them type it in, how do I get my macro to delete all of the records that don't have that user's ID in column B?
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,215,103
Messages
6,123,103
Members
449,096
Latest member
provoking

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