回复 1楼喀喀坤的帖子
使用的是 Spread Com 版本吧?获取方式如下:
- Private Sub fpSpread1_LeaveCell(ByVal Col As Long, ByVal Row As Long, ByVal NewCol As Long, ByVal NewRow As Long, Cancel As Boolean)
- Dim curtext As String
- Dim pretext As String
-
- Me.fpSpread1.Row = Row
- Me.fpSpread1.Col = Col
- curtext = fpSpread1.Text
-
- Me.fpSpread1.Row = NewRow
- Me.fpSpread1.Col = NewCol
- pretext = fpSpread1.Text
-
- End Sub
复制代码
可以通过设置 Spread 的Row 和Col 属性,来制定当前单元格,进而获取文本值。 |