+ Reply to Thread
Results 1 to 4 of 4

Opening all files in directory

  1. #1
    Registered User
    Join Date
    06-14-2004
    Posts
    52

    Opening all files in directory

    I have a macro, I would like to run on all files in a directory. But I only want it to open one file, run a macro and then close it and open the next file until it is through with the directory or through with selected files, either one would work.

    I am pretty sure something was posted like this, but I cannot seem to locate it.

    Anyone point me in the right direction?

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    This any help

    http://support.microsoft.com/kb/139724


    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    06-14-2004
    Posts
    52
    This any help
    Yes it does thanks VBA Noob

    Though I found one alittle easier to maniupulate from the same source.

    Here is Macro to remove headers in all wqord documents in the current directory. Just have to open one Word Doc in that directory and then trigger the Macro Cooooool

    Thanks
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Glad it helped

    VBA Noob

+ 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