Changing value of a listbox in VBA.
I dont know VBA...
I tried this one....in VB it works...
I cant find the list property in VBA.... if you knew something like this
pls reply thanks...
btw, this is unbound.....
VB Code:
Dim lnAns As Integer
If Me.List1.ListCount = 0 Then
MsgBox "No items"
Exit Sub
End If
If Me.List1.ListIndex = -1 Then
MsgBox "No selected items"
Exit Sub
End If
lnAns = MsgBox("You sure to modify this item?", vbYesNo + vbQuestion)
If lnAns = 7 Then
Exit Sub
End If
Me.List1.[COLOR=Red]List[/COLOR](Me.List1.ListIndex) = Me.Text1.Text
all i found is ItemData property (readonly?)
value property (readonly?)
help!