Can someone please tell me what I have wrong? I get the message box to pop up but nothing happens if I click on yes.
It is supposed to put a "Yes" in column AL if I click on yes but it skip over that in the code.
It is supposed to put a "Yes" in column AL if I click on yes but it skip over that in the code.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim myLabel
i = ActiveCell.Row
If Range("AK" & i) = 1 Then
myLabel = MsgBox("Do you need a BARCODE LABEL", vbYesNo Or vbQuestion, "Labels")
If myLabel = vbNo Then Exit Sub
End If
If myLabel = ybYes Then
Range("AL" & i) = "yes"
Unload Me
End If
End Sub