• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Conditional Macro

delta

Member
i need in sheet1 enter any value in three cell A5,D15,H10, then run macro otherwise nothing and show message box " Fill all the filed"
 
delta
Copy next to Sheet1's code sheet
and You'll get Messages ... many!
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Range("A5") = Empty Or Range("D15") = Empty Or Range("H10") = Empty Then MsgBox "Fill all the filed"
End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Range("A5") = Empty Or Range("D15") = Empty Or Range("H10") = Empty Then MsgBox "Fill all the filed"
End Sub
 
Back
Top