View Full Version : title for the msgbox


misdirection
07-18-2008, 10:44 AM
How do I get rid of the title that shows "0", it's ridicilious and I can't figure it out on how to remove it. Thanks.:o

KenHigg
07-18-2008, 10:47 AM
I don't guess I've ever seen that. What does your line of code that calls the message box look like?

TylerTand
07-19-2008, 12:35 PM
I am a little confused, are you trying to create a message box with a title or without?

If you are trying to create a message box without a title you can use this code:
MsgBox "Do you like water?", vbYesNo, ""

This example will have a Yes or No option and a blank title bar. If you want a title then put your text in between the last two double quotes:
MsgBox "Do you like water", vbYesNo, "For Water Lovers"

Hopefully this helps you,
Tyler

CyberLynx
07-21-2008, 03:29 PM
If you're seeing a Message Box Title displaying a zero (0) then most likely there is a code line calling the MsgBox function which is using a Variable to display a Title rather than a physical string. That variable may be supplying the undesirable title and you will need to find out why. Most likely because the variable wasn't Declared as a String.

.