Hi there,
do me a favor, if I want to show a value based on listbox selection.
For instance:
If selection changed in listbox then we show a value in column E.
Kindly advice
Thank in advance and have a nice weekend.
Rgds,
Harto
Hi there,
do me a favor, if I want to show a value based on listbox selection.
For instance:
If selection changed in listbox then we show a value in column E.
Kindly advice
Thank in advance and have a nice weekend.
Rgds,
Harto
I mean, Textbox2 is showing a value based on column EOriginally Posted by slamet Harto
Example:
listbox selection row 1 is
10.1MD0
then textbox to is A
I have never seen anyone call a listbox TextBox2 before!
[vba]
Private Sub ListBox1_Click()
With Me
If .ListBox1.ListIndex >= 0 Then _
.Textbox2.Clear
.Textbox2.AddItem .ListBox1.List(.ListBox1.ListIndex, 3)
End With
End Sub
[/vba]
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
Hi Bob
Its work fine and will change textbox to another listbox.
Thank you for assistance.
Best rgds,
harto
[VBA]Private Sub ListBox1_Change()
With Me
.TextBox2.Text = .ListBox1.Text
End With
End Sub[/VBA]