DWTSG, here's one other point, to help you pinpoint bugs like
this (i.e., when you get an error that doesn't tell you what
line caused it):
Run the macro again but instead of running it from Word, run it
from the editor by pressing F8 (while your cursor is in the body
of the procedure). This'll run the macro one line at a time, so
you'll be able to see which line it chokes on. (You can also
hover your mouse over parts of the code and see the values of
various items in it -- also a big help.)
--
Mark Tangard <
[email protected]>, Microsoft Word MVP
Please reply ONLY to the newsgroup, not by private mail.
Note well: MVPs do not work for Microsoft.
"Life is nothing if you're not obsessed." --John Waters