VBA设置电子表格字体大小和行大小?

mez*_*hic 1 excel vba

有没有一种方便的方法从VBA设置工作表的字体大小和行高?

Ale*_*x P 9

这应该工作:

Sub SetFormat()
    With ActiveSheet
        .Cells.Font.Size = "12" 
        .Cells.RowHeight = 25.5
    End With
End Sub
Run Code Online (Sandbox Code Playgroud)