Esy02 1、 选定sheet1 工作表,合并A1:C1 单元格,并输入“TEST”,背景颜色设置为浅黄色,字体颜色设置为红色,字体大小设置为 10 磅
Sub Macro1() ' Macro1 Macro ' 宏由 xu 录制,时间: 2013/3/26 ' Application
Left = 201
25 Application
Top = 61
75 Range("A1:C1")
Select With Selection
HorizontalAlignment = xlCenter
VerticalAlignment = xlBottom
WrapText = False
Orientation = 0
AddIndent = False
IndentLevel = 0
ShrinkToFit = False
ReadingOrder = xlContext
MergeCells = False End With Selection
Merge Range("A1:C1")
Select ActiveCell
FormulaR1C1 = "TEST" Range("A1:C1")
Select With Selection
HorizontalAlignment = xlCenter
VerticalAlignment = xlCenter
WrapText = False
Orientation = 0
AddIndent = False
IndentLevel = 0
ShrinkToFit = False
ReadingOrder = xlContext
MergeCells = True End With With Selection
Name = "宋体"
FontSt