我必须在左右对齐一吨列,我尝试先做with ws
然后再做.columns(1,3,10,15).horizontalalignment = xlGeneral
之类的事情,但似乎只允许我将每一列对齐为一行一次编码。
我该如何浓缩:
.Columns(14).HorizontalAlignment = xlGeneral
.Columns(15).HorizontalAlignment = xlGeneral
.Columns(16).HorizontalAlignment = xlGeneral
.Columns(18).HorizontalAlignment = xlGeneral
.Columns(19).HorizontalAlignment = xlGeneral
.Columns(17).HorizontalAlignment = xlLeft
.Columns(20).HorizontalAlignment = xlLeft
在我指定的列中只有两行代码xlGeneral
和xlLeft
?