Greeting Everyone,
I been scratching my head in order to get this macro to work the way i want but have not been able to do so, so i am requesting help from the forum.
What i want the code to do is to show a msgbox("Top plate must be change now" if cell I7 = 1 and to show the 2nd msgbox if cell I7=0.
And what is currently doing is showing both msgbox on after the other.
Also the sub is call manually with a button.
Any help is very much appreciated.
Thanks
Sub Tooling()
Result = MsgBox("Top Plate Must be change now", vbOKOnly + vbCritical)
Counter = Range("i7")
If Counter = 1 Then
MsgBox "Top Plate Must be change now", vbOKOnly + vbCritical
Result = vbOK
Sheets("Tooling").Protect "password", True, True
ElseIf Counter = 0 Then
MsgBox "Click Check Tooling button at the end of shift", vbOKOnly + vbInformation
End If
End Sub
Bookmarks