Wrap Text on Command Button

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to wrap text on a command button? I know that by sizing it
the text will wrap. It's just that I want it a certain size.

Thank you, Karen
 
Is there a way to wrap text on a command button? I know that by sizing it
the text will wrap. It's just that I want it a certain size.

Thank you, Karen

You can use Ctrl + Enter to add a new line to the caption, if that is
what you mean by 'wrap'?
 
do you mean that you want to make the button a particular size, that does
NOT result in text on two lines (or three, or whatever) - but you want the
text to break into a specific multiple of lines anyway?

you can "break" the command button's Caption string at any point you wish,
just by pressing Ctrl+Enter to move to the next line.

hth
 
If you're typing the Caption into the Properties page, type Ctrl-Enter where
you want a break in the text.

Otherwise, in the form's Load event, put something like:

Me.cmdButton.Caption = "Line 1" & vbCrLf & "Line 2"
 
Thank you - It works great!

Douglas J Steele said:
If you're typing the Caption into the Properties page, type Ctrl-Enter where
you want a break in the text.

Otherwise, in the form's Load event, put something like:

Me.cmdButton.Caption = "Line 1" & vbCrLf & "Line 2"
 
Thank you - It works great!

tina said:
do you mean that you want to make the button a particular size, that does
NOT result in text on two lines (or three, or whatever) - but you want the
text to break into a specific multiple of lines anyway?

you can "break" the command button's Caption string at any point you wish,
just by pressing Ctrl+Enter to move to the next line.

hth
 
Back
Top