+ Reply to Thread
Results 1 to 4 of 4

VBA - Move a specific number of files from one folder to another

  1. #1
    Registered User
    Join Date
    07-25-2007
    Posts
    40

    VBA - Move a specific number of files from one folder to another

    what i am trying to do is move a specific number of files from one folder to another if there is too many files in the source folder ie

    source folder has 126 files all PDF's, i want to move the first 50 files into a brand new folder. then loop until there are 50 or less files in any folder.

    if its possible to limit the total mb instead of file quantity then that would be better.

    its driving me mad

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: VBA - Move a specific number of files from one folder to another

    Why are you wanting to only do 50 at a time?
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    07-25-2007
    Posts
    40

    Re: VBA - Move a specific number of files from one folder to another

    Its part of a bigger script that emails the files in the folder, after creating a list of whats in the folder. its a way of limiting the email size. the files will generally be a maximum 500kb, mostly 200-230kb each. but if i could limit on total folder size to 10mb or a bit smaller, then that would work too.

    i have a code which copys all the PDF's in a folder picked by the user, it lists all the files, adds some other text etc. But people are starting to send 100+ files, and at about 30mb for the email, gets very big, they just dont understand to split the files up into different folders, etc.

    basically i will loop this to create multiple emails until all the files are in emails.

  4. #4
    Registered User
    Join Date
    07-25-2007
    Posts
    40

    Re: VBA - Move a specific number of files from one folder to another

    Any Help?

    Please

+ 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: 1
    Last Post: 01-28-2019, 06:55 PM
  2. [SOLVED] VBA Code to Move Individual Files from 1 Folder to a new Folder
    By mike.lawrie448 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 11-21-2014, 07:05 AM
  3. [SOLVED] Can Excel do calculations ie count number of .xlsx files in a specific folder on pc
    By blacktie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-19-2013, 06:13 AM
  4. Replies: 1
    Last Post: 01-24-2006, 11:35 AM
  5. Replies: 1
    Last Post: 01-24-2006, 12:25 AM

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