Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default VB MsgBox Icons similar to Data / Validation / Error Alert's

Hi

Just an idle query really...

If i create a bespoke message in Excel through Data/Validation/Error Alert,
i get the option to include a graphic for either; 'Stop', 'Warning' or
'Information'. I dont suppose there is some way of entering these, or perhaps
other graphics / icons, into my bespoke messages in VB code using "MsgBox
(Prompt, Buttons, Title, Help File, Contexts)"?

As always, any help gratefully receieved, let me know if you need any more
info


cheers


jb
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default VB MsgBox Icons similar to Data / Validation / Error Alert's

I think with the Msgbox function you're limited to the icons these 4 values
for the "Buttons" argument creates:

vbCritical 16 Display Critical Message icon.
vbQuestion 32 Display Warning Query icon.
vbExclamation 48 Display Warning Message icon.
vbInformation 64 Display Information Message icon.


--
Jim
"JB2010" wrote in message
...
| Hi
|
| Just an idle query really...
|
| If i create a bespoke message in Excel through Data/Validation/Error
Alert,
| i get the option to include a graphic for either; 'Stop', 'Warning' or
| 'Information'. I dont suppose there is some way of entering these, or
perhaps
| other graphics / icons, into my bespoke messages in VB code using "MsgBox
| (Prompt, Buttons, Title, Help File, Contexts)"?
|
| As always, any help gratefully receieved, let me know if you need any more
| info
|
|
| cheers
|
|
| jb


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default VB MsgBox Icons similar to Data / Validation / Error Alert's

Hi Jim,

that's great, many thanks.

The MsgBox these create seem only to be of the 'vbOKonly' type. I can
understand this for 'Information', 'Critical' & maybe even 'Exclamation', but
I dont understand the point of asking a 'Question' however with only one
possible response!

Do you know how to amend the MsgBox so it includes the 'vbQuestion' aspect
aswell as say the 'vbYesNoCancel' bit?

Many thanks again

jb

"Jim Rech" wrote:

I think with the Msgbox function you're limited to the icons these 4 values
for the "Buttons" argument creates:

vbCritical 16 Display Critical Message icon.
vbQuestion 32 Display Warning Query icon.
vbExclamation 48 Display Warning Message icon.
vbInformation 64 Display Information Message icon.


--
Jim
"JB2010" wrote in message
...
| Hi
|
| Just an idle query really...
|
| If i create a bespoke message in Excel through Data/Validation/Error
Alert,
| i get the option to include a graphic for either; 'Stop', 'Warning' or
| 'Information'. I dont suppose there is some way of entering these, or
perhaps
| other graphics / icons, into my bespoke messages in VB code using "MsgBox
| (Prompt, Buttons, Title, Help File, Contexts)"?
|
| As always, any help gratefully receieved, let me know if you need any more
| info
|
|
| cheers
|
|
| jb



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default VB MsgBox Icons similar to Data / Validation / Error Alert's

Maybe you need a messagebox with much more options:
http://devnull.at/?IPB7C

RBS

"JB2010" wrote in message
...
Hi

Just an idle query really...

If i create a bespoke message in Excel through Data/Validation/Error
Alert,
i get the option to include a graphic for either; 'Stop', 'Warning' or
'Information'. I dont suppose there is some way of entering these, or
perhaps
other graphics / icons, into my bespoke messages in VB code using "MsgBox
(Prompt, Buttons, Title, Help File, Contexts)"?

As always, any help gratefully receieved, let me know if you need any more
info


cheers


jb


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
Show Data validation List options in a msgbox jlclyde Excel Discussion (Misc queries) 1 October 28th 09 07:26 PM
Data Validation Error Dileep Chandran Excel Worksheet Functions 7 November 8th 06 12:22 PM
#VALUE# error with Data Validation KG Excel Discussion (Misc queries) 1 May 28th 05 05:31 AM
Data Validation Error! Soniya Excel Programming 0 August 19th 03 08:31 AM
error with data validation Claude Excel Programming 1 July 21st 03 11:02 AM


All times are GMT +1. The time now is 05:28 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"