+ Reply to Thread
Results 1 to 6 of 6

Processing Multiple Files

  1. #1
    Registered User
    Join Date
    07-27-2011
    Location
    singapore
    MS-Off Ver
    Excel 2007
    Posts
    32

    Processing Multiple Files

    Hi All,

    I have an application in which i gets two input from user namely the Config file location and Input file Location.These values are stored as TextBox values.

    Later when i click the process button,the files are been processed.
    Currently it process only one file...as the user select the Input file as Filename rather than the Folder name....

    Now i have a requirement in which user just select the InputFile Folder and all files under it with extension .csv are processed one by one.

    The codes for the Steps are given below.

    Please Login or Register  to view this content.

    The workbook Open method is as below

    Please Login or Register  to view this content.
    Please help to call CreateWafermap for each .CSV file in the Folder one by one.
    Find the attachment for more information.
    Attached Files Attached Files

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Processing Multiple Files

    Hi

    Have a look here: http://www.excelforum.com/tips-and-t...ernatives.html

    It should get you on the right track

  3. #3
    Registered User
    Join Date
    07-27-2011
    Location
    singapore
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Processing Multiple Files

    Can u help me with some sample codes ?

    Regards
    Ashesh

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Processing Multiple Files

    Maybe:

    Please Login or Register  to view this content.
    Last edited by Kyle123; 09-13-2011 at 04:47 AM.

  5. #5
    Registered User
    Join Date
    07-27-2011
    Location
    singapore
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Processing Multiple Files

    Hi Kyle,

    May i know which of the variable in above code store the Input file Path...
    The Createwafer method requires two parameter as input namely the config file and the name of input file

    Regards
    Ashesh

  6. #6
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Processing Multiple Files

    I've edited my post, I'm a little confused by your set up, seems a little odd - generally you should avoid global variables.

    I think this should do what you want?

+ 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