Option ExplicitSub setFormat() Dim SelectionCell As Range Set SelectionCell = Worksheets("Sheet1").Range("A1:D4") With SelectionCell .Borders.Weight = 4 .Font.Size = 10 .Font.Name = "宋体" .Interior.ColorIndex = 34 End WithEnd Sub
本文共 314 字,大约阅读时间需要 1 分钟。
Option ExplicitSub setFormat() Dim SelectionCell As Range Set SelectionCell = Worksheets("Sheet1").Range("A1:D4") With SelectionCell .Borders.Weight = 4 .Font.Size = 10 .Font.Name = "宋体" .Interior.ColorIndex = 34 End WithEnd Sub
转载于:https://blog.51cto.com/mstudy/1658830