Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change button text of Msgbox?

Status
Not open for further replies.

trojan800

Programmer
Nov 27, 2001
53
US
I was wondering if it is possible to change the text of buttons on message boxes. I currently use the constant vbYesNo which works great but to increase usability it would help if I could replace 'Yes' with something like 'View Data' and 'No' with 'Add More'. Does that make sense? I don't want to change the functionality of the message box, I only want to replace the button text. Is this possible? Thanks in advance for any help.

'sample code I currently use
strMessage = "Successfully Saved to Database."
intResponse = MsgBox(strMessage, vbYesNo + vbInformation, "Saves Complete")

If intResponse = vbNo Then
'do something
elseif intResponse = vbYes then
'do something else
end if
 
You could just make you own messagebox using a form and a few command buttons.

Swi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top