本帖最后由 hessen 于 2017-5-24 16:41 编辑
- Public Sub RangeSelection(sender As Object,e As SpreadsheetGear.Windows.Forms.RangeSelectionChangedEventArgs)
-
- AW.WorkbookSet.GetLock()
- Dim Range As IRange = AW.ActiveWorksheet.Range
- Dim RngA As IRange = e.RangeSelection.Intersect(Range("T_502"))
- If Not RngA Is Nothing Then
- For Each Target As IRange In RngA
- Dim r AS Integer = Target.row + 1
- Range("T_502").Interior.ColorIndex = -1
- Range("$D$" & r & ":$N$" & r ).Interior.ColorIndex = 20
- Next
- End If
- AW.WorkbookSet.ReleaseLock()
-
- End Sub'单元格选择后执行的事件
复制代码
T_502.xls
(13 KB, 下载次数: 12)
|
|
hessen