I have the following simplified VBA code which shows a message box once the user clicks on a button in the Excel spreadsheet:
Message Box A:
Sub Message_Box_A ()
Answer = MsgBox("Do you want to continue?", vbYesNo)
If Answer = vbYes Then
Sheets("Sheet1").Range("A1").Value = 1
Else
End If
End Sub
Message Box B:
Sub Message_Box_B ()
Answer = MsgBox("Do you want to continue?", vbYesNo)
If Answer = vbYes Then
Sheets("Sheet2").Range("A1").Value = 1
Else
End If
End Sub
Is there a way how I can "globalize" the text of the message box "Do you want to continue?" so if I want to change it I do not have to go through each VBA code of each message box?