Excel 请教老师,vba怎样缩小字体填充

如题所述

如对单元格A1的操作:

Sub 宏1()
    Range("A1").Select
    With Selection
        .HorizontalAlignment = xlGeneral
        .VerticalAlignment = xlCenter
        .WrapText = False
        .Orientation = 0
        .AddIndent = False
        .IndentLevel = 0
        .ShrinkToFit = True
        .ReadingOrder = xlContext
        .MergeCells = False
    End With
End Sub

温馨提示:答案为网友推荐,仅供参考
第1个回答  2017-02-05
按F1 找Range对象的方法
相似回答