VBA/macro to hide,uncheck "(blank)" in pivot tables when refreshing

PLwolves87

New Member
Joined
Jan 6, 2023
Messages
31
Office Version
  1. 365
Platform
  1. Windows
hi all,

please help i have search and tried nearly everyone suggestions with no luck at all.

i have a workbook and the sheet with all the pivot tables is named ("Tables_outbound") on this sheet i have a total of of 11 pivot tables, the pivot tables names are ("PTABLE1") , ("PTABLE2") until we get to ("PTABLE11")

i then have refresh icon which i want to click, and then it will update all of my pivot tables with the new data and then remove the "(blank)" for each of the 11 pivot tables.

the pivotfield names are below but when i have attempted this i get an error message about the pivotfield not found or something.

PTABLE1 - "Account"
PTABLE2- "Account2"
PTABLE3- "Account3"
PTABLE4- "DATE"
PTABLE5- "DATE2"
PTABLE6- "Account4"
PTABLE7- "STATUS"
PTABLE8- "Account5"
PTABLE9- "STATUS2"
PTABLE10- "Account6"
PTABLE11 -"Account7"


please help thanks
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Show your VBA code. And definitely take a screen-shot of the error message, and post that too.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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