multi line caption on command button??

N

neowok

basically i have a command button and the caption is too long for me t
fit it without making the button too wide. is there a way (som
character or key combination) to make it start a new line at some poin
in the caption??

thank
 
T

Tom Ogilvy

You can do it with code

Private Sub Userform_Initialize()
Userform1.CommandButton1.Caption = "ABCDE" & Chr(10) & "EFGHIJ"
End Sub
 
G

Guest

set the commandbutton.wordwrap property=true and then create the caption
using string concatenation such as

cmdbutton.caption ="First Line" & vbcrlf & "Second Line" & vbcrlf & "Third
line
 

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