how do I set the default look of a pivot table that was created with VBA?

Pat1009

Active Member
Joined
Jun 4, 2015
Messages
264
I need to change the default look/design of a pivot table that was created in VBA.
After a refresh (re-run the module), the pivot table comes up, but the first column (A) is huge.
It is so wide I cant even see column B unless I scroll over.
Is there something I can change in the VBA code to default it to a reasonable size?
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Set the columns, rows to the size you would like them to be, just by dragging them. Then right click a cell on the pivot table. Select pivot table options, tab layout & format, check the preserve cell formatting on update box.

Hope this is what you were after.
 
Upvote 0

Forum statistics

Threads
1,215,777
Messages
6,126,835
Members
449,343
Latest member
DEWS2031

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