Hey!
I hope to get you'r help..
I get combobox in me excel, that when select from the list my pivot table change = just like a pivot table filter.
So far so good
my problem start when i choose a specific item from my combobox i get:
"run time error 1004 unable to get the pivotfields property of the pivot table class"
this is my vba code:
Thanks!!!
Tamar.
----
Mod Edit:
Cross posted here:
http://www.ozgrid.com/forum/showthread.php?t=194177
I hope to get you'r help..
I get combobox in me excel, that when select from the list my pivot table change = just like a pivot table filter.
So far so good
my problem start when i choose a specific item from my combobox i get:
"run time error 1004 unable to get the pivotfields property of the pivot table class"
this is my vba code:
Code:
Private Sub ComboManager_Change()
Dim sheet As Worksheet
Dim pt As PivotTable
Dim ptField As PivotField
Dim pi As PivotItem
Dim i As Integer
Dim connections As String
Application.EnableEvents = False
Application.ScreenUpdating = False
Set sheet = ThisWorkbook.Worksheets("View")
Set pt = ActiveSheet.PivotTables("PivotTable1")
Set ptField = pt.PivotFields("Department Manager")
ptField.CurrentPage = Me.ComboManager.Value
ActiveWorkbook.connections("Query from MS Access Database").Refresh
Application.EnableEvents = True
Application.ScreenUpdating = True
End Sub
Tamar.
----
Mod Edit:
Cross posted here:
http://www.ozgrid.com/forum/showthread.php?t=194177
Last edited by a moderator: