Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在 vba 中执行以下操作时,两行合并为一。我想要两个单独的合并行,有人可以帮忙吗?
Range("A" & 1 & ":I" & 1).MergeCells = True Range("A" & 2 & ":I" & 2).MergeCells = True
除了我的评论,试试这个
Sub Sample() Range("A" & 1 & ":I" & 2).MergeCells = False Range("A" & 1 & ":I" & 1).MergeCells = True Range("A" & 2 & ":I" & 2).MergeCells = True End Sub