Adding rows to a table in a form

J

Joe Brabeck

I am creating a template/form that contains tabled
information. Occassionally the user will need to add rows
to the table.

Is it possible to allow a user to expand a table (add
rows) while the document is protected?
 
P

Pat Adams

No, it is not. And the problem is that if you unprotect to add a row, then
reprotect, the fields in the form are initialized. You'll need a macro to
prevent this from happening.

Pat
 
C

Cindy Meister -WordMVP-

Hi Joe,
Is it possible to allow a user to expand a table (add
rows) while the document is protected?
I usually save such as row as an AutoText entry, then use a
macro (attached to a toolbar button) to:
- unprotect
- insert the AutoText entry
- reprotect

Things can get a bit more complicated if you need to use
form field names in calculations. But if you only need this
basic bit you can put together the macro fairly easily.
- record inserting the AutoText entry (over
Insert/AutoText/AutoText) in a macro
- Go to my website and get the basic code to
unprotect/reprotect without losing user input
- Put this code "around" the steps you recorded
- Assign it to a toolbar button saved in the form template
(or document)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Sep 30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top