• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

7. Macro Hacks > 59. Do Something to Every File in a Directory

Do Something to Every File in a Directory

Even the simplest Word task becomes arduous when it must be repeated more than a handful of times. Give your mouse a rest, and let Word do the work with this hack.

Opening a document, accepting all the revisions, then saving, printing, and closing it sounds simple enough. But what if you need to do that for each of the 50 Word files in a folder? Even if you put an “Accept All Revisions” button on your toolbar, you’re still looking at about 250 different mouse clicks. And amid all that clicking, chances are you’ll miss a step (or a document) somewhere.

The Code

Place this macro in the template of your choice [Hack #50] and either run it from the ToolsMacroMacros dialog or put a button for it on a menu or toolbar [Hack #1] .


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint