S
Susan J-P
Although I'm an experienced Word user, I'm a neophyte with VBA. I've found
some posts that discuss the issue I'm trying to resolve, but nothing quite
fits my situation.
Here's the situation:
We have a shared Word template with form fields on the title page (section
1) that are used to populate the headers/footers of the document (e.g.
document title, version, date, author, etc.). I'd like to protect the form
fields as the various authors more often than not simply delete the field
when adding the appropriate information to the title page. I've already
figured out how to make this a protected section.
The rest of the document should remain unprotected but needs to have the
full gamut of Word editing features available (comments, track changes,
graphics, etc.). As long as the document is protected, these features are
unavailable.
So I'm trying to figure out if it's possible to have the document
automatically unprotect itself whenever the user is anywhere other than
section 1; and to protect section 1 whenever the user is in section 1. So the
logic is something like:
if current section = 1
then protect
else
unprotect
I've been stumbling around for a couple of days with VBA trying to figure
out if this is really do-able but haven't had much luck. I figure the more
experienced of you out there can at least point me in the right direction
here.
Of course, if there's a better solution to this, I'd pleased to learn more.
Just keep in mind that I'm trying to keep the solution simple both for the
users and for me!
Thanks for any help you can provide.
Susan
some posts that discuss the issue I'm trying to resolve, but nothing quite
fits my situation.
Here's the situation:
We have a shared Word template with form fields on the title page (section
1) that are used to populate the headers/footers of the document (e.g.
document title, version, date, author, etc.). I'd like to protect the form
fields as the various authors more often than not simply delete the field
when adding the appropriate information to the title page. I've already
figured out how to make this a protected section.
The rest of the document should remain unprotected but needs to have the
full gamut of Word editing features available (comments, track changes,
graphics, etc.). As long as the document is protected, these features are
unavailable.
So I'm trying to figure out if it's possible to have the document
automatically unprotect itself whenever the user is anywhere other than
section 1; and to protect section 1 whenever the user is in section 1. So the
logic is something like:
if current section = 1
then protect
else
unprotect
I've been stumbling around for a couple of days with VBA trying to figure
out if this is really do-able but haven't had much luck. I figure the more
experienced of you out there can at least point me in the right direction
here.
Of course, if there's a better solution to this, I'd pleased to learn more.
Just keep in mind that I'm trying to keep the solution simple both for the
users and for me!
Thanks for any help you can provide.
Susan