回复 10楼wlosg的帖子
wlosg 你好,
第四个参数代表的是复制的行数,应该是 1 。下面是我的测试代码:
- Private Sub Command2_Click()
-
- Me.fpSpread1.CopyRange 1, 0, fpSpread1.MaxCols, 1, 1, 1
- End Sub
- Private Sub Form_Load()
- fpSpread1.Row = 0
- fpSpread1.col = 1
- fpSpread1.CellType = CellTypeEdit
- fpSpread1.TypeTextShadow = False
- fpSpread1.text = "测试"
- Me.fpSpread1.ForeColor = RGB(0, 0, 255)
- Me.fpSpread1.BackColor = RGB(0, 255, 0)
- End Sub
复制代码 |