Filtering Accross Multiple Worksheets from Drop Down List

Dannycash

New Member
Joined
Aug 23, 2018
Messages
6
Hi all, first post on here.</SPAN>

I’m having trouble cracking the VBA code I need to allow a user to select a region name from a drop-down list on Sheet1 that will filter results (based on their selection) in 9 other named worksheets (Week36 through to Week44).
</SPAN>
The drop-down list is sourcing the list of region names from another worksheet within the book.</SPAN>

Each WeekXX worksheet is laid out exactly the same, the region name is located in column B in each worksheet with the header name located in B3.</SPAN>

I’m not an excel rookie but haven’t ever really explored the world of VBA. Many of the other posts I have read don’t seem to work when selecting an option/name from a list.</SPAN>

Any help would be greatly appreciated. </SPAN>

I am using Excel 2016 if that helps?</SPAN>

This is as far as I got: (Beds & Herts is one of the region names)

Code:
Sub Macro2()
'
' Macro2 Macro
'
'
    Range("K16").Select
    Sheets("Week 36").Select
    ActiveSheet.Range("$B$3:$B$1483").AutoFilter Field:=1, Criteria1:= _
        "Beds & Herts"
    Sheets("Week 37").Select
    ActiveSheet.Range("$B$3:$B$1483").AutoFilter Field:=1, Criteria1:= _
        "Beds & Herts"
    Sheets("Week 38").Select
    ActiveSheet.Range("$B$3:$B$1483").AutoFilter Field:=1
End Sub
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
How about
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
   Dim i As Long

   If Target.CountLarge > 1 Then Exit Sub
   If Not Intersect(Target, Range("S5:S1483")) Is Nothing And Target.Value = "Yes" Then
      For i = 37 To 38
         Sheets("Week" & i).Range("E" & Target.Row).Resize(, 14).Formula = "=if(Week36!E" & Target.Row & "="""","""",Week36!E" & Target.Row & ")"
      Next i
   End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
Latest member
laura12345

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