回復 1#afu9240
參考F大的程式,似乎只要將AA = Application.Index(資料瀏覽_ListBox.List, xi+1) 改成AA = Application.Index(資料瀏覽_ListBox.List, xi) 就可以了
Private Sub CommandButton17_Click()
Dim AA(), xi As Integer
With 資料瀏覽_ListBox
For xi = 0 To .ListCount - 1
If .Selected(xi) Then '
AA = Application.Index(資料瀏覽_ListBox.List, xi)
With Sheets("工作表1").Range("A" & Rows.Count).End(xlUp).Offset(1)
.Resize(, UBound(AA)) = AA
'
End With
End If
Next
End With
End Sub作者: afu9240 時間: 2018-3-16 10:53