返回列表 上一主題 發帖

[發問] 如何查詢比對後加總合呈列

回復 1# BV7BW

問題1如下,請測試看看,謝謝
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Column = 8 Then
    If Target.Row < 4 Then GoTo 99
    If Target.Row > 199 Then GoTo 99
    [K9] = Target.Value
End If
If Target.Column = 15 Then
    If Target.Row < 2 Then GoTo 99
    If Target.Row > 199 Then GoTo 99
    [K11] = Target.Value
End If
99:
End Sub

TOP

回復 7# BV7BW

如其他的大大說明是跳出那個條件的程序,99: 以後可以接您原先的程式碼,謝謝

TOP

        靜思自在 : 地上種了菜,就不易長草;心中有善,就不易生惡。
返回列表 上一主題