PDA

View Full Version : [SOLVED] Button Height



TheGreatest
12-31-2004, 06:25 AM
Hi,

When I add a button on a UserForm and adjust the height of the button to 16, I can only see half of the text on the button. Is there any way to solve this?

Thanks in advance

TheGreatest
12-31-2004, 07:54 AM
Hi again,

I've solved the problem with the following codes...


Private Sub UserForm_Initialize()
With CommandButton1
.Height = 16
.FontSize = 7
End With
End Sub

Regards

surya prakash
01-01-2005, 01:08 AM
You could also adjust the height of font at design time, by going to properties after selecting the command button (or anyother control that you may want) and clicking on 'F2' and changing the font height manually.

Other properties as given in the property window can also be manipulated as per requirements.

Happy new year

prakash