multi line caption on command button??

  • Thread starter Thread starter neowok
  • Start date Start date
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
 
You can do it with code

Private Sub Userform_Initialize()
Userform1.CommandButton1.Caption = "ABCDE" & Chr(10) & "EFGHIJ"
End Sub
 
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
 
Back
Top