Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Tue, 19 Aug 2008 12:28:13 -0700,    group: microsoft.public.word.vba.general        back       


Code to Display a button in a MsgBox?   
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.
-- 
JoAnn
date: Tue, 19 Aug 2008 12:28:13 -0700   author:   JoAnn

Re: Code to Display a button in a MsgBox?   
"JoAnn"  wrote in message 
news:97120006-B810-4744-8F81-035125371963@microsoft.com...
> 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.


-- 
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
date: Tue, 19 Aug 2008 21:58:00 +0100   author:   Jonathan West

Re: Code to Display a button in a MsgBox?   
JoAnn,

This might get you started:
http://gregmaxey.mvps.org/Custom_MsgBox.htm

Jonathan West wrote:
> "JoAnn"  wrote in message
> news:97120006-B810-4744-8F81-035125371963@microsoft.com...
>> 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.

-- 
Greg Maxey -  Word MVP

My web site http://gregmaxey.mvps.org
Word MVP web site http://word.mvps.org
date: Tue, 19 Aug 2008 17:36:26 -0400   author:   Greg Maxey RrOMEOgOLF

Re: Code to Display a button in a MsgBox?   
Thanks! I'll try that.
-- 
JoAnn


"Greg Maxey" wrote:

> JoAnn,
> 
> This might get you started:
> http://gregmaxey.mvps.org/Custom_MsgBox.htm
> 
> Jonathan West wrote:
> > "JoAnn"  wrote in message
> > news:97120006-B810-4744-8F81-035125371963@microsoft.com...
> >> 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.
> 
> -- 
> Greg Maxey -  Word MVP
> 
> My web site http://gregmaxey.mvps.org
> Word MVP web site http://word.mvps.org 
> 
> 
>
date: Wed, 20 Aug 2008 07:23:02 -0700   author:   JoAnn

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us