I'm using a FileListBox to "Filecopy" from a multi select process.
The following code is only copying one file across and not the multiple items as selected.
strDest doesn't change...
Something probably very simple, but I can't see it?
Code: Select all
If Me.TreeView1.SelectedItem.Text = "" Then
MsgBox "No Vehicle Selected", vbInformation, ""
Exit Sub
End If
If Me.File1 = "" Then
MsgBox "No Method Selected", vbInformation, ""
Exit Sub
End If
Dim N As String
Dim strDest As String
Dim i As Integer
For i = 0 To File1.ListCount - 1
If File1.Selected(i) Then
strDest = "L:\mmpdf\ConsoleFiles\" & txtEst.Text & "\" & txtEst.Text & "-Meth-" & File1.FileName
FileCopy Me.AcrobatPath, strDest
End If
Next i
MsgBox "All Files Transferred", vbInformation, ""