VBA以枢轴表列为中心 [英] VBA to center Pivot Table Columns

查看:65
本文介绍了VBA以枢轴表列为中心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要帮助编写VBA代码以自动居中数据透视表单元格而无需手动单击工具栏上的中心对齐。

I need assistance in writing a VBA code to center Pivot Table cells automatically without manually clicking on the center alignment on the toolbar.

注意:只要选择了特定的数据透视表(我总共有4个数据透视表),数据透视表就会自动使用VBA代码刷新。即使数据透视表自动刷新,我也希望中心对齐以保持其格式。

Note: the pivot tables refreshes automatically with a VBA code whenever the specific Pivot Table (I have a total of 4 pivot tables ) is selected. I would like the center alignment to maintain its formatting even when the pivot tables refreshes automatically.

我将非常感谢所有帮助。

I will appreciate all the help I can get.

推荐答案

所以记录你的中心然后手动将该代码添加到您的。
So record you centering manually then add that code to yours.


这篇关于VBA以枢轴表列为中心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆