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
"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
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
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 > > >