+ Reply to Thread
Results 1 to 5 of 5

Copy selected files into a specific directory

  1. #1
    Forum Contributor
    Join Date
    08-02-2007
    Location
    Panama & Austria
    MS-Off Ver
    2003 & 2010
    Posts
    186

    Copy selected files into a specific directory

    Hi,
    I need a procedure to:
    a) let the user select any file (name or type)
    b) Paste the selected file in a Specific folder.

    Part a) is easy. I used the
    Please Login or Register  to view this content.
    line.
    How can i accomplish part b)?? I dont need to open the files. Just to save them in the folder I choose. Those files could be any type. From .pdf to .fgs to anythig.

    Thanks
    Last edited by Wizz; 01-29-2009 at 10:50 AM.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983

    Re: Copy selected files into a specific directory

    Heres 1 method - It moves the file

    Place all the code in a normal module
    Run MoveFile


    Please Login or Register  to view this content.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Forum Contributor
    Join Date
    08-02-2007
    Location
    Panama & Austria
    MS-Off Ver
    2003 & 2010
    Posts
    186

    Re: Copy selected files into a specific directory

    Hi Mudraker,
    I Must NOT modify the original. Is there a form to have a duplicated file in the new folder?

  4. #4
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    Re: Copy selected files into a specific directory

    Hi
    If you don't have too many files, Let
    A1= source file path (G:\macro\upload\)
    A2= source file name(with extention)(wizz.xls)
    A3= Destination file path(F:\coffee\sugar\)
    A4 = destination file name(with extention)(Wizard.xls)

    Please Login or Register  to view this content.
    Ravi

  5. #5
    Forum Contributor
    Join Date
    08-02-2007
    Location
    Panama & Austria
    MS-Off Ver
    2003 & 2010
    Posts
    186

    Re: Copy selected files into a specific directory

    Excelente !
    Just what I needed.

    Thanks you very much Ravishankar and Mudraker.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1