Macro or protection error(?) in table

D

D. Tyler

I am developing a user form that contains a table that utilizes check boxes.
On occasion the user will need to add row(s) to make additional (separate)
entries. In order to carryover the formatting (check boxes) with the newly
added rows, I wrote a simple macro that adds a fully-formatted row. The
sequence is move the cursor to the outside of the last cell, select
Tools>Unprotect Document, Alt+F8 and select the "add row" macro. The macro
runs fine and inserts the row; however, when I reprotect the document (to
allow the check boxs to function properly), all the selections made in the
previous check boxes gets zapped and the entire form is blank. I have tried
all manner of "save" options to no avail. Is this a bug?
 
C

Charles Kenyon

See http://word.mvps.org/FAQs/MacrosVBA/TurnFmFlfResetOff.htm.

By the way, a UserForm is a custom dialog box, not a document that contains
form fields. Such a document (or template) is what Word calls an "online
form." For more about online forms, follow the links at
http://addbalance.com/word/wordwebresources.htm#Forms (you would have found
the first link here) or
http://word.mvps.org/FAQs/Customization/FillinTheBlanks.htm especially Dian
Chapman's series of articles. You may also want to look at
http://www.word.mvps.org/FAQs/TblsFldsFms/LinesInForms.htm.

Hope this helps,
--

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




--------- --------- --------- --------- --------- ---------
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.
 

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