By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,221 Members | 1,121 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,221 IT Pros & Developers. It's quick & easy.

Is it possible to highlight portion of text in Msgbox?

P: n/a
I would like to highlight (say make it bold) a couple of words in a
Msgbox. Is it possible?
Similarly, how can I change the caption of a label with highlighted
text?
Nov 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
> I would like to highlight (say make it bold) a couple of words in a
Msgbox. Is it possible?
Probably not in the way you are suggesting, but see
http://www.trigeminal.com/usenet/usenet015.asp?1033 for information relative to
"formatted" message boxes.
Similarly, how can I change the caption of a label with highlighted
text?


You can change the format of the label's text *as a whole*, but not simply
portions thereof. I suppose that you might be able to do this with a Rich Text
control. Check out the following page at Stephen Lebans' web site to see if
there is something you can use: http://www.lebans.com/richtext.htm. I am unsure,
however, whether changing the formatting on portions of the text in those
controls with VBA would be worth the trouble. You might be able to create a
similar effect using multiple controls, and that would be an approach that I
would look into first.

--
Bruce M. Thompson
bt******@mvps.org (See the Access FAQ at http://www.mvps.org/access)
NO Email Please. Keep all communications

within the newsgroups so that all might benefit.<<
Nov 12 '05 #2

P: n/a
Thanks.

On Fri, 17 Oct 2003 19:53:10 -0400, "Bruce M. Thompson"
<bthmpson@big_NOSPAM_foot.com> wrote:
I would like to highlight (say make it bold) a couple of words in a
Msgbox. Is it possible?


Probably not in the way you are suggesting, but see
http://www.trigeminal.com/usenet/usenet015.asp?1033 for information relative to
"formatted" message boxes.
Similarly, how can I change the caption of a label with highlighted
text?


You can change the format of the label's text *as a whole*, but not simply
portions thereof. I suppose that you might be able to do this with a Rich Text
control. Check out the following page at Stephen Lebans' web site to see if
there is something you can use: http://www.lebans.com/richtext.htm. I am unsure,
however, whether changing the formatting on portions of the text in those
controls with VBA would be worth the trouble. You might be able to create a
similar effect using multiple controls, and that would be an approach that I
would look into first.


Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.