Results 1 to 10 of 10

Thread: select multiple files *RESOLVED*

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    277

    Resolved select multiple files *RESOLVED*

    Back again for more.

    Does anybody know what modifications I need to add to this code to allow the user to either open a single file or select multiple files.

    Code so far
    VB Code:
    1. Private Sub Command1_Click()
    2. Dim strFile As String
    3.  
    4. On Error Resume Next
    5.  
    6.     With CommonDialog1
    7.         .Flags = cdlOFNExplorer
    8.         .Filter = "Mp3 (*.mp3)|*.mp3"
    9.         .InitDir = "C:\"
    10.         .DialogTitle = "Select File"
    11.    
    12.         .ShowOpen
    13.         If Not .FileName = "" Then
    14.             strFile = Mid(.FileName, InStrRev(.FileName, "\") + 1)
    15.             If Dir(FAVORITES_FOLDER & strFile) = "" Then
    16.                 FileCopy .FileName, FAVORITES_FOLDER & strFile
    17.             End If
    18.         End If
    19.     End With
    20.  
    21. End Sub

    Cheers
    Rob
    Last edited by robvr6; Jan 15th, 2005 at 12:42 PM. Reason: resolved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width