我的Excel是通过程序自动创建的。
2 个解决方案
#1
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
录制宏之后得到两个属性.
xlCenter 你可以试试0,1,2,3试试.
.VerticalAlignment = xlCenter
录制宏之后得到两个属性.
xlCenter 你可以试试0,1,2,3试试.
#2
.HorizontalAlignment := $FFFFEFF4;
.VerticalAlignment := $FFFFEFF4;
.VerticalAlignment := $FFFFEFF4;
#1
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
录制宏之后得到两个属性.
xlCenter 你可以试试0,1,2,3试试.
.VerticalAlignment = xlCenter
录制宏之后得到两个属性.
xlCenter 你可以试试0,1,2,3试试.
#2
.HorizontalAlignment := $FFFFEFF4;
.VerticalAlignment := $FFFFEFF4;
.VerticalAlignment := $FFFFEFF4;