新产品销售策略:VB高手们帮帮忙好吗?

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/05 17:52:56
要把MSHFlexGrid1中的数据导入到excel中,这样写行吗?

Row = 1
For i = 0 To MS1.Rows - 1
For j = 0 To MS1.Cols - 1
newsheet.Cells(i + Row, j) = MS1.TextMatrix(i, j)

Next j

Next i

运行的时候提示newsheet.Cells(i + Row, j) = MS1.TextMatrix(i, j)错误424
帮帮忙呀!