+ Reply to Thread
Results 1 to 4 of 4

Process Multiple Files at Once

  1. #1
    Registered User
    Join Date
    07-18-2007
    Posts
    10

    Process Multiple Files at Once

    I have a requirement to validate "price" parameter in a file. I have coded a macro that does this. However I have been told that there are potentially over 50 files on which I would have to repeat the process, which can be time consuming. I was planning to create an text/excel file to store the names of those 50 odd files that I would like to process from a folder containing over 200 files. Is it possible to code a macro that can read this new text/excel file and repeat the process for every file?

    Appreciate any help!

    Regards,
    DD
    Last edited by dashingdude; 08-22-2007 at 04:41 AM.

  2. #2
    Forum Contributor boylejob's Avatar
    Join Date
    02-22-2007
    Location
    Forest City, NC
    MS-Off Ver
    2003
    Posts
    562
    dashingdude,

    I'm sure there is probably a more elegant way of doing this, but here is how I would probably do it. This code is set up to use a list that would have the file path, file name, and sheet name put in different columns. I did it this way because I have no idea if all of your files are in the same folder and if they are then this can be simplified somewhat. I coded for worst case scenerio.
    Please Login or Register  to view this content.
    You will need to play around with this and adjust it to fit your needs, but maybe it will get you headed in the right direction. I threw this together rather quickly based on the information you gave. It may be able to be streamlined a little more based on your exact situation.
    Sincerely,
    Jeff

  3. #3
    Registered User
    Join Date
    07-18-2007
    Posts
    10
    Jeff,

    This looks pretty good. I will try it right away.
    Many thanks.

    Best,
    DD

  4. #4
    Forum Contributor boylejob's Avatar
    Join Date
    02-22-2007
    Location
    Forest City, NC
    MS-Off Ver
    2003
    Posts
    562
    dashingdude,

    Hope it works and please post back to let me know.

+ 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