Pivot Table Trouble

alex7896

New Member
Joined
Mar 30, 2009
Messages
1
I have no idea if this is possible to do or not, but here goes:
I have a pivot table for a list of tasks that various people can perform. Some people can only do certain tasks, and the table can be filtered for multiple tasks (showing the person with the most available skills at the top... etc etc etc..)

What I am trying to do is add a section to the table saying "you have serached for the following: "

In it I want to basically display what items were indicated in the drop down menu, and thereby allow a user to easily see their selection without having to reopen the drop down menu!

Is this possible or a pipe dream???:confused:
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
hi, Alex. Maybe below can be modified for what you want? HTH, Fazza

Code:
Sub test()
 
  Dim pf As PivotField
  Dim pit As PivotItem
  Dim strFilterInfo As String
 
  For Each pf In ActiveSheet.PivotTables(1).PivotFields
    If Not pf.Orientation = 0 Then
      strFilterInfo = strFilterInfo & vbCr & pf.Name & vbCr
      For Each pit In pf.PivotItems
        If pit.Visible Then strFilterInfo = strFilterInfo & " - " & pit.Name & vbCr
      Next pit
    End If
  Next pf
 
  Set pit = Nothing
  Set pf = Nothing
 
  MsgBox strFilterInfo
End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,829
Messages
6,121,827
Members
449,051
Latest member
excelquestion515

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