I'va doen some research on this and I am fairly sure it is possible, but the exact technique is escaping me.
I would like to place a command button in a cell in a MSFlexGrid control.
This is a condensed version of what I have:
-----------------------
Dim cmdViewTable As VB.CommandButton
Set cmdViewTable = Controls.Add("VB.CommandButton", _
"cmdViewTable"
MSFlexGrid1.AddItem ""
MSFlexGrid1.TextMatrix(1, 1) = cmdViewTable
-------------------------
The columns property of the MSFlexGrid1 control is 1, and I get a "Run-time error '381': Subscript out of Range" error.
I would like to place a command button in a cell in a MSFlexGrid control.
This is a condensed version of what I have:
-----------------------
Dim cmdViewTable As VB.CommandButton
Set cmdViewTable = Controls.Add("VB.CommandButton", _
"cmdViewTable"
MSFlexGrid1.AddItem ""
MSFlexGrid1.TextMatrix(1, 1) = cmdViewTable
-------------------------
The columns property of the MSFlexGrid1 control is 1, and I get a "Run-time error '381': Subscript out of Range" error.