|
Private Sub ListView1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
ReDim arr(1 To 1, 0 To ListView1.ColumnCount - 1)
With Me.ListView1
For i = 0 To .ListCount - 1
If .Selected(i) Then ' 检查当前项是否被选中
For j = 0 To UBound(arr, 2)
arr(1, j) = .List(i, j)
Next
End If
Next i
End With
With 业务登记窗体
.TextBox6.Value = arr(1, 0): .TextBox98.Value = arr(1, 1): .ComboBox3.Value = arr(1, 2): .ComboBox9.Value = arr(1, 3)
.TextBox97.Value = arr(1, 4): .TextBox42.Value = arr(1, 5): .TextBox46.Value = arr(1, 6)
End With
End Sub |
|