+ Reply to Thread
Results 1 to 7 of 7

Batch processing via VBA?

  1. #1
    Registered User
    Join Date
    03-03-2009
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    53

    Batch processing via VBA?

    I have HUNDREDS of files that I need to perform the SAME repeating tasks on... is there any way to automate/batch process via VBA?

    For example...

    PROMPT user to select files (multiple files, as large as batch will allow)

    Then FOR EACH file in selection...
    1. OPEN FILE
    2. Do some stuff (I already have the code working)
    3. SAVE FILE (I have this part working as well)

    Right now I have all the parts working each individually, but I have open each file and run each VBA macro manually.
    Is there any way to batch process these files, so I can select and walk away?

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,279

    Re: Batch processing via VBA?

    ???
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-03-2009
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Batch processing via VBA?

    .............
    Attached Images Attached Images
    Last edited by Tomkat; 03-27-2023 at 09:28 PM. Reason: Deleted

  4. #4
    Registered User
    Join Date
    03-03-2009
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Batch processing via VBA?

    Ah, I see what's happening, it's just opening another workbook, I need to IMPORT the data from the .obj file into an existing workbook. This is way more complicated than I thought.

  5. #5
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,279

    Re: Batch processing via VBA?

    ???
    Quote Originally Posted by Tomkat View Post
    I need to IMPORT the data from the .obj file into an existing workbook
    ???

    ...

    ???
    Please Login or Register  to view this content.
    Last edited by mjr veverka; 03-28-2023 at 06:05 AM.

  6. #6
    Registered User
    Join Date
    03-03-2009
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Batch processing via VBA?

    I apologize.

    I now realize that I have oversimplified things and not explained my situation nearly adequately.
    I will try to better explain the exact process I am trying to automate. Even if I have to make
    a quick YouTube video to do it. Would that be acceptable?

    All is not in vain, though, because I'm sure the code you provided will end up being used, I just have to figure out exactly WHERE to put it.

    I REALLY appreciate your help.

  7. #7
    Registered User
    Join Date
    10-07-2024
    Location
    Virginia, USA
    MS-Off Ver
    O365
    Posts
    1

    Re: Batch processing via VBA?

    In the sample code above, I would recommend declaring wb as Workbook.

+ 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. Batch Processing Excel Workbooks
    By solnish in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 07-12-2015, 04:00 AM
  2. Batch processing excel macro in Mac OS X
    By adithyaroshan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-10-2015, 02:31 PM
  3. Help modifying a batch processing Macro
    By a_stansbury in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-15-2014, 02:44 PM
  4. Help finding a "batch processing" technique for a userform???
    By WillRn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2005, 10:05 AM
  5. Open Batch File For Processing
    By Chuckles123 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-15-2005, 09:05 AM
  6. excel batch processing
    By anwarbham in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-18-2005, 12:09 PM
  7. [SOLVED] how to batch processing excel worksheet modifications?
    By neptune in forum Excel General
    Replies: 4
    Last Post: 01-13-2005, 05:06 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