Font Size

A

AJOLSON

I am trying to adjust the font size of a message box but can seem to get it
to work. This is what I have

Dim strTemp as string

StrTemp = " Test Message'

strTemp.fontsize = 12

Msgbox strTemp

Any help in coding this right would be appricated.

Andy
 
C

Clifford Bass

Hi Andy,

The font size of the text that you pass to MsgBox is controlled by your
Windows settings, so you will need to change them there. Of course that will
affect the font size of text in a lot of other windows. If you only want to
impact message boxes in your own program, you will need to make your own
custom message box form.

Clifford Bass
 
D

Dirk Goldgar

AJOLSON said:
I am trying to adjust the font size of a message box but can seem to get it
to work. This is what I have

Dim strTemp as string

StrTemp = " Test Message'

strTemp.fontsize = 12

Msgbox strTemp

Any help in coding this right would be appricated.


You have no programmatic control over the font size used by the MsgBox
function. If you really need to do that, you can create a dialog form of
your own for the purpose, or use one of several such that have been posted
from time to time. Here's one that looks pretty cool, though I haven't
tried it:

http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/

I don't know whether that one works only for Access 2007 or not.
 
Top