Hello everyone,
I am using Office 365 and I made a dashboard which is built from several pivot tables and is filtered by some slicers and three dependant ActiveX comboboxes. The first combobox should filter the "Product" field, the second the "W.O." field and the third the "Operations" one.
Currently I almost managed to complete the first combobox, thanks to the very kind help I got from these forums:
Help with three dependent ActiveX comboboxes? (excelforum.com)
and
Dependant ActiveX comboboxes filtering multiple pivot tables Issue (vbaexpress.com)
but I still have some problems due to my limited knowledge and I fear that my question is impossible to answer, given the helpful (but not complete) answers I got...
This literally makes me feel stuck and frustrated, because I have been working on this project since last November. I would like to learn and would really appreciate your help! Even to know if all of this can actually be done or not!
My current goals are as follows:
Obviously, if I ever receive an answer in the other forums, I won't hesitate to share it here.
I hope you understand that I did not write here just to save time, but because now it has become a necessity of mine.
Thank you in advance
Efreet61
I am using Office 365 and I made a dashboard which is built from several pivot tables and is filtered by some slicers and three dependant ActiveX comboboxes. The first combobox should filter the "Product" field, the second the "W.O." field and the third the "Operations" one.
Currently I almost managed to complete the first combobox, thanks to the very kind help I got from these forums:
Help with three dependent ActiveX comboboxes? (excelforum.com)
and
Dependant ActiveX comboboxes filtering multiple pivot tables Issue (vbaexpress.com)
but I still have some problems due to my limited knowledge and I fear that my question is impossible to answer, given the helpful (but not complete) answers I got...
This literally makes me feel stuck and frustrated, because I have been working on this project since last November. I would like to learn and would really appreciate your help! Even to know if all of this can actually be done or not!
My current goals are as follows:
- being able to clear the comboboxes and make the pivot tables return as before (unfiltered);
- filter the "Product" and "Progress" tables, located in their respective sheets (it seems like I am not able to filter tables which do not have the "Product" field in the pivot filter...);
- connect (if possible, because it would be a gem!) the slicers to the comboboxes, so that they react whenever they filter a product.
Code:
Option Explicit
Dim ProductPivotSheets As Variant
Sub RunOnce()
'This sub Initializes all global variables.
'run this before any other subs
ProductPivotSheets = Array("Widgets", "Cronology", "Departments", "Managers", "Engineers", "Notes")
End Sub
Private Sub ComboBox1_Change()
Dim CPName As String
Dim i As Long
CPName = Me.ComboBox1.Value
Application.ScreenUpdating = False
For i = LBound(ProductPivotSheets) To UBound(ProductPivotSheets)
Sheets(ProductPivotSheets(i)).PivotTables(ProductPivotSheets(i)).PivotFields("Product").CurrentPage = CPName
Next i
Sheets("DB_Joined").Visible = True
Application.ScreenUpdating = True '<------------ Important: Screen Updating is persistant
End Sub
Obviously, if I ever receive an answer in the other forums, I won't hesitate to share it here.
I hope you understand that I did not write here just to save time, but because now it has become a necessity of mine.
Thank you in advance
Efreet61
Attachments
Last edited by a moderator: