Mr. Charles,
I cannot find a broken line, but am I looking for the correct thing...a red
line? I am also curious about the password protection. The macro takes off
the protection but when it puts protection back on there does not seem to be
a line of code that adds the password back in.
> The macro works.
>
[quoted text clipped - 43 lines]
> >
> > End Sub
By broken line, I meant a line of code that should be on one line but is
wrapped to the next line and treated as a second line.
Yes, if you have a password, you have to put it in the code when you
unprotect the document and when you reprotect it.

Signature
Charles Kenyon
Word New User FAQ & Web Directory: http://addbalance.com/word
Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide
See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
> Mr. Charles,
>
[quoted text clipped - 57 lines]
>> >
>> > End Sub
Kay - 10 Feb 2006 12:21 GMT
Thank you. I will go over each line again to see if I can spot it.
> By broken line, I meant a line of code that should be on one line but is
> wrapped to the next line and treated as a second line.
[quoted text clipped - 62 lines]
> >> >
> >> > End Sub