Change text orientation on a Pivot Table and ensure it is still changed when refreshing it

Mokoni

New Member
Joined
Sep 9, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm working on a big file having Power Query connections on another application.

Result is some Pivot Table having a lot of "yes/no" column with very long names in the header.

I want to changed the style of these header to always have the text vertically as displayed here :

1662713674702.png


I have an issue when refreshing : if new colmns with new labels are added, text is not vertical but horizontal and not readable...

I tried :
* select all the columns of the table and change the style
* select the complete line of the sheet and change the style
* change this in the pivot table style that I apply to my table but it seems it is not a proposed parameter :
1662713890830.png


Any idea ? Should I do that via a Macro after refreshing the table ? knowing that I already use a macro to refresh all connexions and then, pivot table, it could be added in this one but I don't know how to develop it...
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
have you tried, make sure Autofit is not selected
1662979417459.png
 
Upvote 0
Hi @Kerryx, thanks for your answer.

I just had a look and yes it is unchecked...

As I'm using a macro to refresh all, I added a line in the macro to "reinforce" this once refreshed but it's not as clean as expected :
Excel Formula:
    Worksheets("Fields - DATA").Range("5:5").Rows(1).Orientation = 90
 
Upvote 0

Forum statistics

Threads
1,223,958
Messages
6,175,628
Members
452,661
Latest member
Nonhle

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