Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default MsgBox Title

This has to be real easy, but I can't find it in books or
on this newsgroup...

How do I change the title in a MsgBox??

Thanks for the help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default MsgBox Title

Jack,

Try something like

MsgBox "Hello, World", vbOKOnly, "Title Goes Here"



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"Jack S." wrote in message
...
This has to be real easy, but I can't find it in books or
on this newsgroup...

How do I change the title in a MsgBox??

Thanks for the help.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default MsgBox Title

MsgBox "text prompt goes here", "TITLE GOES HERE"

You're missing a second comma before the title text.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Alex" wrote in message
...
Syntax

MsgBox(prompt[, buttons] [, title] [, helpfile, context])

MsgBox "text prompt goes here", "TITLE GOES HERE"

"Jack S." wrote:

This has to be real easy, but I can't find it in books or
on this newsgroup...

How do I change the title in a MsgBox??

Thanks for the help.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default MsgBox Title

The syntax is different for InputBox, where Title is the second operand.

See your HELP and for some examples you might look at
InputBox, MsgBox and TextBox
http://www.mvps.org/dmcritchie/excel/inputbox.htm

---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Alex" wrote in message ...
Your right...

What's weird is how it's not needed for InputBox... That's what I was using.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default MsgBox Title

Hi Jack,

As I think others have posted, the answer is this ( I am using a
example to highlight the message then the vb button and finally th
message box title):

response = msgbox ("Do you wish to continue", vbYesNo, "Continu
warning")

The commas are really important so remember to include them (which wa
my first mistake!!)

Hope that it helps

Numa

--
Message posted from http://www.ExcelForum.com

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to hide a chart title, but keep the title in the chart KBratt Charts and Charting in Excel 1 July 16th 09 12:13 AM
Named range=Column title,comumn title in cellB6 use B6in equation Graham Excel Discussion (Misc queries) 2 July 21st 06 10:03 AM
Show full path title in title bar? Nor New Users to Excel 4 November 4th 05 06:00 PM
Pasting Objects into Chart title and Axis title Sam Charts and Charting in Excel 1 June 6th 05 08:50 PM
msgbox title dg[_2_] Excel Programming 2 August 17th 04 10:32 PM


All times are GMT +1. The time now is 07:07 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"