+ Reply to Thread
Results 1 to 5 of 5

VBA for multiple workbooks in a directory

  1. #1
    Registered User
    Join Date
    07-16-2014
    Location
    kathmandu, nepal
    MS-Off Ver
    2007
    Posts
    15

    VBA for multiple workbooks in a directory

    Hey Guys,

    Let me explain what I am trying to achieve:

    I've multiple excel workbooks in a folder. I've to do same task in all of the work books.

    Running the same script from Visual Basic Editor for each & every excel work book is very tedious.

    How can I run the VBA code for every workbooks in a directory?

    Suppose pass a parameter as folder name with path and the VBA code executes for every excel work book present there.

    Is this possible? While surfing I found that we can use Visual Basic Script in such cases, I dont have any idea to do this,
    please explain.

    Thank You!!!

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: VBA for multiple workbooks in a directory


    Hi,

    should be possible if you know coding in VBA !

    Start to read Dir function inner VBA help …

  3. #3
    Registered User
    Join Date
    07-16-2014
    Location
    kathmandu, nepal
    MS-Off Ver
    2007
    Posts
    15

    Re: VBA for multiple workbooks in a directory

    Hello Marc L,

    I think this is also possible using Visual Basic Script. But I am not sure.

    Thank You.

  4. #4
    Registered User
    Join Date
    07-17-2014
    Location
    Turkey
    MS-Off Ver
    2003
    Posts
    85

    Re: VBA for multiple workbooks in a directory

    VBA code to open multiple files in same folder and perform same macros

    Please Login or Register  to view this content.
    and another VBA Code To Open Multiple Excel Files;

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-17-2014
    Location
    Turkey
    MS-Off Ver
    2003
    Posts
    85

    Re: VBA for multiple workbooks in a directory

    If you want to apply all excel files ( including closed );

    Please Login or Register  to view this content.

+ 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. Open multiple workbooks in directory, copy a range to them for data collection
    By agutman50 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-28-2014, 01:24 PM
  2. Sort first column of multiple workbooks from a single directory
    By lmolokin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2012, 05:15 PM
  3. Replies: 0
    Last Post: 01-21-2012, 11:48 PM
  4. Copying range into multiple workbooks in a directory
    By tinkerbelle in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2007, 04:43 AM
  5. header onto multiple workbooks in same directory
    By AmyTaylor in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-13-2005, 07:17 AM

Tags for this Thread

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