Creating Summary Page from Multiple Worksheets by using a filter with Reference from Summary Page

KotievdB

New Member
Joined
Feb 24, 2016
Messages
2
I have one workbook with a summary sheet, an 5 to 7 input sheets (asset register) that I want to be able to select a dropdown on the summary sheet for say the branch and the workbook automatically filters all the input sheets by branch entries (all branches are included per asset category per input sheet) so that the summary sheet only reflects the Branch data.

In addition it must also go back to the global information, if say "ALL" is selected.

Have researched some VBA options, but is there no Excel button or add on that can do this? And what VBA options are out there?
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Okay, used following VBA and it worked, slight glitch when I do all but calculates.

Private Sub Worksheet_Change(ByVal Target As Range)
Dim KeyCells As Range


' The variable KeyCells contains the cells that will
' cause an alert when they are changed.

Set KeyCells = Worksheets("Summary").Range("M3")



If Not Application.Intersect(KeyCells, Range(Target.Address)) _
Is Nothing Then



Dim p As Integer, q As Integer




p = Worksheets.Count
For q = 3 To p

With Worksheets(q).Range("A6").AutoFilter(6, KeyCells)


End With
Next q


Dim p1 As Integer, q1 As Integer
p1 = Worksheets.Count
For q1 = 3 To p1


On Error Resume Next
If KeyCells = "ALL" Then Worksheets(q1).ShowAllData


Next q1


End If




End Sub
 
Upvote 0

Forum statistics

Threads
1,216,085
Messages
6,128,732
Members
449,465
Latest member
TAKLAM

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