S
stevewy
I work in a centralized word processing department for a local
authority. I have a customer who wants to set up a series of tables
as a Word protected form, so that the people filling it in cannot
change it. So far so good, but he also wants them to be able to
insert extra rows in the table where required (with form fields in
them so they can input further information into them). None of the
form fields in the document have specific names, so he isn't planning
on extracting them to a database once the document is complete or
anything. He just wants to stop people from changing the document in
ways he doesn't want them to, but he does want them to be able to
insert extra table rows. I would imagine an ability to insert a table
row immediately beneath the current cursor position is what he has in
mind - in other words in a new row after the current row.
I did tell him that he is rather wanting to have his cake and eat it,
because the idea of Word Forms is that the user cannot change any
aspect of the protected form, just input information. However, can
anyone think of a way (perhaps using VBA?) of having a protected form
but still being able to insert extra rows in a table (complete with
blank form fields)? I did try doing a version of this, using a macro,
but Word gave me an error when I tried to play the macro, saying
macros cannot be played in protected areas of a document.
Is there a way in VBA I can slightly change what is allowed in a
protected form, and what isn't?
Any help on this would be appreciated.
Steve Wylie
Kent
UK
authority. I have a customer who wants to set up a series of tables
as a Word protected form, so that the people filling it in cannot
change it. So far so good, but he also wants them to be able to
insert extra rows in the table where required (with form fields in
them so they can input further information into them). None of the
form fields in the document have specific names, so he isn't planning
on extracting them to a database once the document is complete or
anything. He just wants to stop people from changing the document in
ways he doesn't want them to, but he does want them to be able to
insert extra table rows. I would imagine an ability to insert a table
row immediately beneath the current cursor position is what he has in
mind - in other words in a new row after the current row.
I did tell him that he is rather wanting to have his cake and eat it,
because the idea of Word Forms is that the user cannot change any
aspect of the protected form, just input information. However, can
anyone think of a way (perhaps using VBA?) of having a protected form
but still being able to insert extra rows in a table (complete with
blank form fields)? I did try doing a version of this, using a macro,
but Word gave me an error when I tried to play the macro, saying
macros cannot be played in protected areas of a document.
Is there a way in VBA I can slightly change what is allowed in a
protected form, and what isn't?
Any help on this would be appreciated.
Steve Wylie
Kent
UK