LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default message box - title change

hi
a direct copy/paste from vb help....

Dim Msg, Style, Title, Help, Ctxt, Response, MyString
Msg = "Do you want to continue ?" ' Define message.
Style = vbYesNo + vbCritical + vbDefaultButton2 ' Define buttons.
Title = "MsgBox Demonstration" ' Define title.
Help = "DEMO.HLP" ' Define Help file.
Ctxt = 1000 ' Define topic
' context.
' Display message.
Response = MsgBox(Msg, Style, Title, Help, Ctxt)
If Response = vbYes Then ' User chose Yes.
MyString = "Yes" ' Perform some action.
Else ' User chose No.
MyString = "No" ' Perform some action.
End If

Press ALT+F11 to bring up the vb editor. in vb help, type MsgBox. click on
the Msgbox function for more details.

"Roger on Excel" wrote:

I have a userform which calls up a msg box

How does one change the title of the msgbox?

At present it reads Microsoft Excel - I want to change what it says

At present my code reads as follows

MsgBox "Instructions", vbInformation

Can anyone help with the correct syntax?



 
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
Cannot change title of second chart Robert Baer Charts and Charting in Excel 2 April 19th 09 08:11 AM
Change the name of the title bar to the name of the worksheet. dave Excel Programming 2 February 5th 09 02:41 AM
Change Title of Spreadsheet Stockwell43 Excel Discussion (Misc queries) 14 December 20th 07 03:11 PM
VBA to Change Font in title Barb Reinhardt Charts and Charting in Excel 7 October 27th 06 08:25 PM
Change Title Bar praptisahni Excel Discussion (Misc queries) 1 February 28th 06 03:22 PM


All times are GMT +1. The time now is 12:39 AM.

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

About Us

"It's about Microsoft Excel"