Paste to a cell all visible pivot item

myenters69

New Member
Joined
Aug 29, 2016
Messages
1
Please help guys,

I have search all over with no luck.
I just want to copy all value in visible pivot item and paste it to single cell.

Lets say i have pivot item "Channel_1" That have four list "Corporate", "Retail", "Internal Account", and "(blank)".

01.jpg


I will choose manually in that pivot item to make visible only, lets say "Corporate" and "Internal Account".
03.jpg

how to make the Corporate and Internal account pasted/listed on a cell.

02.jpg


All i know that i could call all the visible list and show in msgbox using this:

Code:
Sub Macro1()    Dim asu As PivotItem
    Dim asustr As String
        
    For Each asu In ActiveSheet.PivotTables("PivotTable3").PivotFields("Channel_2").PivotItems
        If asu.Visible Then asustr = asu.Name
        MsgBox (asustr)
        Next asu
End Sub

Sorry for my bad english
Thanks
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,216,380
Messages
6,130,274
Members
449,570
Latest member
TomMacca52

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