Sub 隔两行合并居中()
Dim i As Long, EndR As Long
喊轮 Application.DisplayAlerts = False
Application.ScreenUpdating = False
With ActiveSheet
EndR = .Cells(.Rows.Count, 1).End(xlUp).Row
For i = 1 To EndR Step 3
With .Cells(i, 1).Resize(1, 5)
升渗拦 .Merge
吵胡 .HorizontalAlignment = xlCenter
End With
Next
End With
Application.DisplayAlerts = True
Application.ScreenUpdating = True
End Sub
代码如上,不明白,请追问