VBA code to extract specific bookmarks from multiple word files
Good afternoon everyone.
VBA beginner looking to accomplish a task quite a beyond his skill level. I would very much appreciate a push in the right direction (though I will not turn down bits of code, if you are so inclined to produce <grin>).
I am looking to create the following:
A VBA macro that copies specific bookmarks from within a word file to another word file. The bookmarks are (for the most part) of the two bracketed variety (completely enclosing the target).
Ideally, the macro could repeat this task for every word file within a given directory, producing a single "output"" word file that looks somthing like this:
--
Bookmark 1 from doc A
Bookmark 2 from doc A
Bookmark 1 from doc B
Bookmark 2 from doc B
Bookmark 1 from doc C
Bookmark 2 from doc C
---
While I can generally muddle through various goto commands in VBA, I remain fairly inexperienced with if, then loops as well as how to work with directories full of files.
A gentle nudge (or terrific push) in the right direction would be most appreciated.
Best,
Justin
|