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 で次のようにすると、2 つの行が 1 つにマージされます。2 つの別々のマージされた行が必要です。誰か助けてもらえますか??
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