EXCEL VBA优化 http://zhidao.baidu.com/question/1175885929211894219.html
把代码放在工作表模块中,码改这样数据有更新变化就会自动触发代码运行。码改aceadmin 源码代码更改如下Private Sub Worksheet_SelectionChange(ByVal Target As Range)Dim lRow As Long,码改unity 开源游戏源码下载 i As Long, myRng As Range
If Not Intersect(Target, Range("K8:M")) Is Nothing Then
lRow = Cells(Rows.Count, "M").End(xlUp).Row
Set myRng = Range("K7:M7")
For i = 8 To lRow
If Cells(i, "M") <> "/" Then
Set myRng = Union(myRng, Range("K" & i & ":" & "M" & i))
End If
Next i
myRng.Copy Sheet2.Range("A1")
End If
End Sub
2024-12-29 00:35
2024-12-28 23:56
2024-12-28 23:35
2024-12-28 23:12
2024-12-28 22:21