Code to Display a button in a MsgBox?

J

JoAnn

I'm trying to create a MsgBox that will display general information text as
well as a button/icon/picture but can't figure out how to do it.

For example, the MsgBox could display:
"Items preceded by <icon> are internal."

I know I can store the text in a variable & can contantenate the variable
with the picture into another variable so it appears as one message. Just
don't know what code I need to use to grab the picture/icon & display it in
the message.

This will not be tied to a form & it won't be something they need to click.
I just need the message to display with both the picture and the text.

Thanks in advance for your help.
 
J

Jonathan West

JoAnn said:
I'm trying to create a MsgBox that will display general information text
as
well as a button/icon/picture but can't figure out how to do it.

For example, the MsgBox could display:
"Items preceded by <icon> are internal."

I know I can store the text in a variable & can contantenate the variable
with the picture into another variable so it appears as one message. Just
don't know what code I need to use to grab the picture/icon & display it
in
the message.

This will not be tied to a form & it won't be something they need to
click.
I just need the message to display with both the picture and the text.


You can't do this with a standard message box - it will only allow you to
display ordinary text.

Intead, you will have to create a form that looks like a message box, and
place both the icon and the text in it before displaying it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top