投稿日 | : 2003/11/26(Wed) 14:54 |
投稿者 | : さんた |
URL | : |
タイトル | : Re^2: MSFlexGridのセル内容の変更 |
返信ありがとうございます。
行方向と列方向で同時にマージしていますが、やはりそれではできないのでしょうか。
以下にコードを載せます。
Option Explicit
Private Sub Command1_Click()
With MSFlexGrid1
.TextMatrix(1, 2) = "abc"
End With
End Sub
Private Sub Form_Load()
With MSFlexGrid1
.TextMatrix(0, 0) = "123"
.TextMatrix(0, 1) = "123"
.TextMatrix(0, 2) = "abc"
.TextMatrix(1, 2) = "abc"
.TextMatrix(2, 2) = "abc"
.MergeCells = flexMergeFree
.MergeRow(0) = True
.MergeCol(2) = True
End With
End Sub