I have different views in dashboard controlled by Options button (Forms). I have a macro which will then considers the option selected and applies the page filter in Pivot table.
For example, Option FS will show Page filter named "FS" in Pivot table likewise ,Option Total TECH will show "(All)"
The macro is as follows :
If Range("D1") = "Total TECH" Then
ActiveSheet.PivotTables("PivotTable2").PivotFields("Industry").CurrentPage = _
"(All)"
End If
If Range("D1") = "FS" Then
ActiveSheet.PivotTables("PivotTable2").PivotFields("Industry").CurrentPage = _
"FS"
End If
If Range("D1") = "PS" Then
ActiveSheet.PivotTables("PivotTable2").PivotFields("Industry").CurrentPage = _
"PS"
End If
If Range("D1") = "MRD" Then
ActiveSheet.PivotTables("PivotTable2").PivotFields("Industry").CurrentPage = _
"MRD"
End If
If Range("D1") = "CMUT" Then
ActiveSheet.PivotTables("PivotTable2").PivotFields("Industry").CurrentPage = _
"CMUT"
End If
The issue is that the dashboard needs to be sent to Executive VPs and I cannot ask them to click on Enable Macro option every time
I just want to know if there is any other alternative to Macro. The complication is that the Pivot table has many row labels which needs to be shown in the dashboard.
For example, Option FS will show Page filter named "FS" in Pivot table likewise ,Option Total TECH will show "(All)"
The macro is as follows :
If Range("D1") = "Total TECH" Then
ActiveSheet.PivotTables("PivotTable2").PivotFields("Industry").CurrentPage = _
"(All)"
End If
If Range("D1") = "FS" Then
ActiveSheet.PivotTables("PivotTable2").PivotFields("Industry").CurrentPage = _
"FS"
End If
If Range("D1") = "PS" Then
ActiveSheet.PivotTables("PivotTable2").PivotFields("Industry").CurrentPage = _
"PS"
End If
If Range("D1") = "MRD" Then
ActiveSheet.PivotTables("PivotTable2").PivotFields("Industry").CurrentPage = _
"MRD"
End If
If Range("D1") = "CMUT" Then
ActiveSheet.PivotTables("PivotTable2").PivotFields("Industry").CurrentPage = _
"CMUT"
End If
The issue is that the dashboard needs to be sent to Executive VPs and I cannot ask them to click on Enable Macro option every time
I just want to know if there is any other alternative to Macro. The complication is that the Pivot table has many row labels which needs to be shown in the dashboard.