S
steve411
I av a problem trying to create a macro that the selection made in
listbox(List1) to be displayed in a textbox(Text1).
here is the code that i did so far but i cant get it to work:
Sub Expense_Select()
'Link the data to the listbox
Range("G7:G18").Select
ActiveSheet.Shapes("List1").Select
With Selection
.ListFillRange = "$G$7:$G$19"
.LinkedCell = ""
.MultiSelect = xlNone
.Display3DShading = False
End With
End Sub
Private Sub List1_Click()
'display the selected item in the textbox
Text1.Text = List1.List(List1.ListIndex)
End Sub
ANY suggestions would be helpful Cheers :
listbox(List1) to be displayed in a textbox(Text1).
here is the code that i did so far but i cant get it to work:
Sub Expense_Select()
'Link the data to the listbox
Range("G7:G18").Select
ActiveSheet.Shapes("List1").Select
With Selection
.ListFillRange = "$G$7:$G$19"
.LinkedCell = ""
.MultiSelect = xlNone
.Display3DShading = False
End With
End Sub
Private Sub List1_Click()
'display the selected item in the textbox
Text1.Text = List1.List(List1.ListIndex)
End Sub
ANY suggestions would be helpful Cheers :