on error resume nextdim i as integerwith list1
for i=0 to .listcount-1
.listindex=i
if .selected(i)=true then
list2.additem .text
.RemoveItem i
endif
next
end with
for i=0 to .listcount-1
.listindex=i
if .selected(i)=true then
list2.additem .text
.RemoveItem i
endif
next
end with
For i = (List1.ListCount - 1) To 0 Step -1
If List1.Selected(i) Then
List2.AddItem List1.List(i)
List1.RemoveItem i
End If
Next
yeya(鸭鸭) :list.find 是什么呀,没有见过?
Dim i As Integer
With List1
For i = .ListCount - 1 To 0 Step -1
If .Selected(i) = True Then
List2.AddItem .List(i)
.RemoveItem i
End If
Next
End With