|
-
Mar 27th, 2007, 07:26 AM
#1
Thread Starter
Lively Member
[RESOLVED] msgbox name
i noticed today that when you pop up a msgbos using the code
msgbox "whatever"
that it always has the default name of excel. is there a bit of code i can add to change what the title of my message box is?
thanks joe
-
Mar 27th, 2007, 07:28 AM
#2
Addicted Member
Re: msgbox name
MsgBox ("hello", vbOKOnly, "Your title here")
-
Mar 27th, 2007, 07:31 AM
#3
Thread Starter
Lively Member
Re: msgbox name
ok so how would i use it with this
MsgBox TextBox2.Text & " is not a valid first name. Please enter a name longer than 2 characters."
because this dosnt work
MsgBox (TextBox1.Text & " is not a valid last name. Please enter a name longer than 2 characters.", vbOKOnly, Invalid last name)
-
Mar 27th, 2007, 07:43 AM
#4
Lively Member
Re: msgbox name
dim i%
i=MsgBox (TextBox1.Text & " is not a valid last name. Please enter a name longer than 2 characters.", vbOKOnly, "Your title here")
-
Mar 27th, 2007, 07:45 AM
#5
Thread Starter
Lively Member
Re: msgbox name
i dont want to declare it is a variable, i just want to use it in the way i put before, but it didnt work
-
Mar 27th, 2007, 07:49 AM
#6
Lively Member
Re: msgbox name
i think this is the procedure to declare msgbox().
if you do not want to work with the variable, then don't bother about it.
if the code i posted works then you got what you required.
-
Mar 27th, 2007, 08:26 AM
#7
Addicted Member
Re: msgbox name
MsgBox TextBox1.Text & " is not a valid last name. Please enter a name longer than 2 characters.", vbOKOnly, "Invalid last name"
-
Mar 27th, 2007, 12:40 PM
#8
Thread Starter
Lively Member
Re: msgbox name
yep thats great. thankyou
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|