+ Reply to Thread
Results 1 to 5 of 5

Copy file and paste it in main folder and its subfolders recpectively

  1. #1
    Forum Contributor
    Join Date
    03-14-2015
    Location
    Mexico
    MS-Off Ver
    365
    Posts
    279

    Copy file and paste it in main folder and its subfolders recpectively

    I have the this code that helps me to paste a file in a main folder however i want to paste the file to all of the sub-folders which can be up to 100 sub-folders. Any idea what needs to be added and changed?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Copy file and paste it in main folder and its subfolders recpectively

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor
    Join Date
    03-14-2015
    Location
    Mexico
    MS-Off Ver
    365
    Posts
    279

    Re: Copy file and paste it in main folder and its subfolders recpectively

    Thank you AlphaFrog it worked fine. I forgot to mention this. Since this is going to be used by other users, is it possible to add like a Folder Picker to select the file to be copied using the File Explorer and be able to do the same to select the Target file and its sub-folders?

    Thank you very much for this great help.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Copy file and paste it in main folder and its subfolders recpectively

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    03-14-2015
    Location
    Mexico
    MS-Off Ver
    365
    Posts
    279

    Re: Copy file and paste it in main folder and its subfolders recpectively

    Awesome, genius AlphaFrog! That worked, thank you!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 10-21-2016, 05:33 PM
  2. Replies: 1
    Last Post: 10-19-2016, 04:44 PM
  3. Importing file as temp and copy paste info into main file!!! HELP PLEASE
    By cory0789 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-05-2015, 02:01 PM
  4. list subfolders and files of main folder with details
    By buerere in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-21-2014, 10:44 AM
  5. Open all workbooks in a folder and copy the first seeht> Paste to New Main workbook.
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-22-2014, 01:56 PM
  6. Replies: 0
    Last Post: 04-21-2014, 04:03 PM
  7. Macro to rename photos in a main folder's subfolders to subfolder names
    By Spardante in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-22-2014, 11:41 PM

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