Help With Dropdown List Macro!

eririt

New Member
Joined
Jul 9, 2011
Messages
4
I have an excel file used for pulling store sales data.

User selects 1 store from a list of 3,000 stores via a dropdown list. The workbook then displays that stores 1-page summary of sales information.

I have to pull information from 120 of the same stores each week.

Searching through a list of 3,000 stores to pick the one I want takes hours.

I would like to use a macro that would select each store from my list & print each page, one by one.

Any guidance would be greatly appreciated!

Thanks
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Assuming things like:

  1. The sheet with drop down in it is Sheet1, cell A1.
  2. The sheet with the list of stores you want to use is Sheet2, column A starting at A1 and going down

...Then this basic macro will do that, edit to your exact needs.

Code:
Sub PrintManyForms()
Dim MyStores As Range
Dim Store    As Range

Set MyStores = Sheets("Sheet2").Range("A:A").SpecialCells(xlConstants)

With Sheets("Sheet1")
    For Each Store In MyStores
        .Range("A1").Value = Store.Value
        .PrintOut Copies:=1
    Next Store
End With
        
End Sub
 
Upvote 0
Thanks for the help. While adding the macro, I found that the dropdown is actually an object named "Drop Down 11"

Is it possible to edit the macro to select the store # from an object?

Thanks
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,283
Members
452,902
Latest member
Knuddeluff

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