Good morning, I'm wondering if there's a 'smart' way of determining whether or not to display a message box. My user wants to send the workbook to her colleague so that a message is displayed when a certain country is selected. This is the code I have, but wonder if the two stages could be included in one message?
I hope that makes sense.
Many thanks,
D€$
Code:
If Range("SelectMarket") = "That Country" Then
If Sheets("Ref").Range("A1") = "0" Then 'Message will be displayed
MsgBox "Note: " & vbCrLf & vbCrLf & _
"From July onwards, city coverage has been changed to whatever." & vbCrLf & vbCrLf & _
"To enhance data comparison, backdata from August (FY12) through June (FY13) has been re-run to exclude x and y. As such, please note that actual results may differ from previous versions."
'' End If
AreYouSure = MsgBox("Do you want to suppress the previous message?", vbYesNo)
If AreYouSure = "6" Then
myPassword = "xyz"
Sheets("Ref").Unprotect Password:=myPassword
Sheets("Ref").Range("A1") = "1"
Sheets("Ref").Protect Password:=myPassword
End If
End If
End If
I hope that makes sense.
Many thanks,
D€$