我只是想知道,在使用MergeCells脚本时,是否可以将文本设置为垂直文本。
MergeCells的作品类似于官方的城镇嘉年华和博尼法奇奥节。然而,期望的输出必须类似于所有圣徒和所有灵魂日的列。

Sub MergeCells()
Application.ScreenUpdating = False
ActiveSheet.Unprotect "123"
With Selection
.Merge
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlCenter
.ShrinkToFit = True
.Orientation = 90
End With
ActiveSheet.Protect "123", AllowFormattingColumns:=True, AllowFormattingRows:=True, AllowFormattingCells:=True
Application.ScreenUpdating = True
End Sub发布于 2022-01-05 02:46:22
https://stackoverflow.com/questions/70587236
复制相似问题