VBABEGINER
Well-known Member
- Joined
- Jun 15, 2011
- Messages
- 1,284
- Office Version
- 365
- Platform
- Windows
Hi All,
Thanks Expert, reading this query.
I am doing one R&D but i am not able to select a perticular value from the listbox.
From listbox, there are 2 items. if i select 1st value it goes on range c4 and if i select 2nd value i goes on c6 value.
Private Sub ListBox2_Click()
if listbox2.select= a then
Range("c4").select
ListBox2.Value = range("c4")
end if
if listbox2.select= b then
Range("c6").select
ListBox2.Value = range("c6")
end if
End Sub
Any expert, give the suggestion on the above?
Thanks Expert, reading this query.
I am doing one R&D but i am not able to select a perticular value from the listbox.
From listbox, there are 2 items. if i select 1st value it goes on range c4 and if i select 2nd value i goes on c6 value.
Private Sub ListBox2_Click()
if listbox2.select= a then
Range("c4").select
ListBox2.Value = range("c4")
end if
if listbox2.select= b then
Range("c6").select
ListBox2.Value = range("c6")
end if
End Sub
Any expert, give the suggestion on the above?