JimK31
asked on
Change Msgbox Button Text
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
Else
'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.
Thanks
Jim
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
Else
'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.
Thanks
Jim
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
BTW: if you need advice on how to create the form, feel free to ask ;)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks everyone. Not what I wanted to hear, but at least I know I wasn't missing something. I have long since gotten away from form messages as I don't really like them, but in this case since it is only one, it looks like the best choice. The messagebox hook stuff I have read before and is just beyond my ability to hack. Or maybe better said, just to much code for so little a change. I'm splitting the points for the effort.