B
beelzebub
Guest
Please Help.
I have a form in which you select a header from a ListBox and add a string along with it from TextBox1, then add them both to TextBox2.
Private Sub CmdBtn_Click()
Dim ListHeader as String
ListHeader = ListBox.Column(0, ListBox.ListIndex)
TextBox2 = TextBox2 & ListHeader & TextBox1 & vbCrLf
End Sub
My problem is that I have the choice of about 50 headers (ranging from 4 characters long to 25 characters long) I would like the text from TextBox1 to be aligned. i.e:
Height: 8.5
Width: 6.3
External Colour: Red
I want to be able to do this without using a non-proportional font (Courier).
Can anyone help?
Thanks in advance.
Beelze
I have a form in which you select a header from a ListBox and add a string along with it from TextBox1, then add them both to TextBox2.
Private Sub CmdBtn_Click()
Dim ListHeader as String
ListHeader = ListBox.Column(0, ListBox.ListIndex)
TextBox2 = TextBox2 & ListHeader & TextBox1 & vbCrLf
End Sub
My problem is that I have the choice of about 50 headers (ranging from 4 characters long to 25 characters long) I would like the text from TextBox1 to be aligned. i.e:
Height: 8.5
Width: 6.3
External Colour: Red
I want to be able to do this without using a non-proportional font (Courier).
Can anyone help?
Thanks in advance.
Beelze