Hello
I would like the font on a command button to adapt to the amount of text. If the amount of text from Range("SeqName") is too much and the button is allowed to autosize, the button fills the entire width of the userform. I looked for a shrink to fit option, but no luck. Is there an option for the font to adapt to the amount of text? Below is the code for the command button properties. I named the command button "PrintSeq_But", the userform is named "E1019_Ctrl".
I would like a .shrinktofit=true
Sometimes Range("SeqName") is several words
Thanks
Tom
I would like the font on a command button to adapt to the amount of text. If the amount of text from Range("SeqName") is too much and the button is allowed to autosize, the button fills the entire width of the userform. I looked for a shrink to fit option, but no luck. Is there an option for the font to adapt to the amount of text? Below is the code for the command button properties. I named the command button "PrintSeq_But", the userform is named "E1019_Ctrl".
Code:
[FONT=Verdana]With E1019_Ctrl.PrintSeq_But
.Caption = "Print " & Range("SeqName").Value & " Sequence"
.Font.Bold = True
.FontSize = 12
.Width = 300
.Left = (E1019_Ctrl.InsideWidth - .Width) / 2
.Top = 150
End With[/FONT]
I would like a .shrinktofit=true
Sometimes Range("SeqName") is several words
Thanks
Tom