回复 13楼tianyake的帖子
抱歉,让你久等了。
需要通过 GetDataFillData 方法来获取当前绑定单元格的数据,获取方法如下:
- Private Sub ss_DataFill(ByVal Col As Long, ByVal Row As Long, ByVal DataType As Integer, ByVal fGetData As Integer, Cancel As Integer)
- If Col = 3 Then
- Dim v As Variant
- If ss.GetDataFillData(v, DataType) Then
- If v = "" Then
- With ss
- .Col = 3
- .Col2 = 3
- .Row = Row
- .Row2 = Row
- .CellType = CellTypeButton
- End With
- End If
- End If
- End If
复制代码
Demo:
DataFill.zip
(14.72 KB, 下载次数: 1858)
|