トップページ(目次)

583.セルに入力されるとマクロVBAを自動実行する

<実行前後>
 → 
Private Sub Worksheet_Change(ByVal Target As Range)
    
    'Module1内ではなく、上の「Sheet1」内に記述します
    If Range("A1") <> "" Then
        
        MsgBox "A1に入力されました"
        
    End If
    
End Sub

Copyright © 2021 https://excel3000.web.fc2.com/ All Rights Reserved.
    inserted by FC2 system