I have a macro that runs based on a drop down list. There are three options in the drop down list. I have created a custom warning message for each drop which works well. I wanted to add a "YES" and "NO" button selection onto this code, but i can't seem to get it to work correctly.
I can Only seem to do either or. The same warning message for each selection but with "yes" and "no", or custom messages for each selection, but only an "OK" option, no "YES and "NO" button selections.
Sub CopyRanges()
Dim message As String
If Sheets("Data").Range("D27") = "6-18" Then
message = "You are about to change the size range, are you sure?"
Msgbox message
End If
If Sheets("Data").Range("D27") = "XS/S-L/XL" Then
message = "You are about to change the size range to DUAL size, some POM's will not be available using the DUAL size range. Are you sure you wish to proceed?"
Msgbox message
End If
If Sheets("Data").Range("D27") = "XXS-XXL" Then
message = "This size range is only for Fully Fashionesd Knitwear. Cut and sew styles please use the size 6-18 size range. Are you sure you wish to proceed?"
Msgbox message
End If