Wrap Text on Command Button

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
 
F

fredg

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'?
 
T

tina

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
 
D

Douglas J Steele

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

Guest

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

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top