+ Reply to Thread
Results 1 to 2 of 2

Macro to open all files, make changes, save and close

  1. #1
    Registered User
    Join Date
    06-23-2005
    Posts
    86

    Macro to open all files, make changes, save and close

    Hi all

    Can anyone help me?

    I have a directory (C:\temp) of 300 excel files that need a change in each file.

    What I want is a macro that will open each file in the directory, make a change (via another macro), and then save and close, then open the next file and so on and so on till all files are complete.

    Obviously I could do this by opening each file manually, running the change macro and saving, but obviously so time consuming.

    Can anybody help me with some code???

    Many thanks in advance,
    CD

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606
    Have a look here: http://www.ozgrid.com/VBA/loop-through.htm

+ 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