Combo1.AddItem Text1, 0
Combo1.Text = Combo1.List(0)
or
Combo1.AddItem Text1
Combo1.Text = Combo1.List(Combo1.ListCount - 1)
Printable View
Combo1.AddItem Text1, 0
Combo1.Text = Combo1.List(0)
or
Combo1.AddItem Text1
Combo1.Text = Combo1.List(Combo1.ListCount - 1)
If you're using a TextBox, use the VbNewLine to
create a newline everytime something is entered.
I think I know what you are looking for:
Is the textbox only one line in height?
if so try this easy piece of code
Code:Text1.SelStart = 0
Text1.SelLength = 0
Text1.SelText = "New Text" & vbCrLf