Change Msgbox Button Text
Posted on 2004-11-20
Hello experts, rookie here.
I use msgboxs throughout my app. and the defaults are normally fine. I have one were instead of saying "Yes" "No", I would like to say "Now" "Later". This is my standard setup for a msgbox.
Dim Cancel As Integer
Dim strMessage, Title As String
Dim intOptions As Integer
Dim bytChoice As Byte
strMessage = "Do it Now or Later?"
Title = "Process Assignments"
intOptions = vbQuestion + vbYesNo + vbDefaultButton2
bytChoice = MsgBox(strMessage, intOptions, Title)
If bytChoice = vbNo Then
Cancel = True
'Do the function
Is there a fairly easy way to do this? I keep finding very large/complex msgbox threads were you can change button location and everything else. Unfortunately I can not seem to get thru the mountains of code to find the parts that would just let me do this.