+ Reply to Thread
Results 1 to 3 of 3

Do While Loop for Macros to run through various workbooks

  1. #1
    Registered User
    Join Date
    07-22-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    85

    Do While Loop for Macros to run through various workbooks

    Hi,

    I have 3 macros currently and wish to run them through a set list of workbooks found in file Auto Comment Control.xls, the Auto Comment (test) files represent the workbooks that I want the macros to run through. Thanks in advance for anyones' help

    here is a list of the three macros

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kchm_2000; 10-21-2011 at 12:13 PM.

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Do While Loop for Macros to run through various workbooks

    First of all, you must have your 3 macros in the Auto Comment Control.xls workbook. In your module4 (I think), you copy this macro which will open every files in the CONTROL workbook and run your 3 macros on them:
    Please Login or Register  to view this content.
    When the macro closes a workbook, it asks you to save changes or not. if you always want to save it, you can do it automatically with this small change in the command:
    Please Login or Register  to view this content.
    Good luck

  3. #3
    Registered User
    Join Date
    07-22-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    85

    Re: Do While Loop for Macros to run through various workbooks

    thanks i understand now

+ 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