Link to home
Start Free TrialLog in
Avatar of JimK31
JimK31Flag for United States of America

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
SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
BTW: if you need advice on how to create the form, feel free to ask ;)
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JimK31

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.