Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default msgbox (2 questions)

first question :

how can i change parameter of message box as :
- change the title of the box...
- change the box layout to have the warning symbol into it (red circl
?)


second question :

how can i put a line break in a message... I want to have multiple lin
but i dont remember how to do it...

thanks in advance for the answers..

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default msgbox (2 questions)

Sub AAAA()
res = MsgBox( _
prompt:="Make a selection" & _
vbNewLine & "from the buttons", _
Buttons:=vbYesNo + vbCritical, _
Title:="Critical Alert")
End Sub
Sub AAAA()
res = MsgBox( _
prompt:="Make a selection" & _
vbNewLine & "from the buttons", _
Buttons:=vbYesNo + vbCritical, _
Title:="Critical Alert")
End Sub

--
Regards,
Tom Ogilvy

"Yan Robidoux " wrote in
message ...
first question :

how can i change parameter of message box as :
- change the title of the box...
- change the box layout to have the warning symbol into it (red circle
?)


second question :

how can i put a line break in a message... I want to have multiple line
but i dont remember how to do it...

thanks in advance for the answers...


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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 132
Default msgbox (2 questions)

Hi Yan;

The first part is like this:

MsgBox "here is your prompt", vbOKOnly, "Your Title Goes
Here"


The second part I do not have.

Thanks,

Greg
-----Original Message-----
first question :

how can i change parameter of message box as :
- change the title of the box...
- change the box layout to have the warning symbol into

it (red circle
?)


second question :

how can i put a line break in a message... I want to have

multiple line
but i dont remember how to do it...

thanks in advance for the answers...


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

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default msgbox (2 questions)

For the first question, take a look at the arguments for MsgBox in
XL/VBA Help:

MsgBox Function

Displays a message in a dialog box, waits for the user to click a button, and
returns an Integer indicating which button the user clicked.
Syntax
MsgBox(prompt[, buttons] [, title] [, helpfile, context])


For your second question, one way:

MsgBox "First line." & vbNewLine & "Second line."



In article ,
Yan Robidoux wrote:

first question :

how can i change parameter of message box as :
- change the title of the box...
- change the box layout to have the warning symbol into it (red circle
?)


second question :

how can i put a line break in a message... I want to have multiple line
but i dont remember how to do it...

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default msgbox (2 questions)

Thanks guy's i'll look into that right away...


---
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
More MsgBox questions. Pete[_6_] Excel Discussion (Misc queries) 2 December 21st 09 09:24 PM
Answers to questions posing more questions in a workbook sbelle1 Excel Worksheet Functions 2 August 8th 09 01:02 AM
View Questions and Answer to questions I created Roibn Taylor Excel Discussion (Misc queries) 4 July 24th 08 12:05 AM
MsgBox CC Excel Discussion (Misc queries) 4 May 5th 06 05:45 PM
MsgBox Help! rbanks Excel Programming 4 November 21st 03 04:17 PM


All times are GMT +1. The time now is 06:01 AM.

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"