📜  vba 下拉事件 - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:53.860000             🧑  作者: Mango

代码示例1
Private Sub Worksheet_Change(ByVal Target As Range)
    Dim checkTarget As Range
    Set checkTarget = Application.Intersect(Target, Range("my_named_range"))
    If checkTarget Is Nothing Then
        Debug.Print "not active range, exit"
    Else
        MsgBox "success"
    End If

End Sub