Adding Rows to Locked Table

M

Matt

Hello all,

I'm a relative newbie to Macro coding, and I need some help with a project
that I tackled that has turned out much more complex than I originally
anticipated.

I have a table in a locked template. What I'd like to create are...

1. two buttons for adding rows, each button will add a row with a unique
style (i.e. one for row with blue background, 12pt font, one for row with
white background, 11pt font)

2. each cell in each row must contain a text form field. this would seem to
be the most difficult part of the project.

3. a third button to delete whichever row the cursor is in.

I know how to unlock/lock the form, I just am not familiar with the commands
to add/delete rows and the variables for the different styles.

Any help is extraordinarily appreciated!

gotham
 
J

Jonathan West

The simplest approach to this is to create the row by hand, formatted in the
way you want, then save it into the template as an AutoText entry, and then
insert the Autotext entry at the appropriate point in the document when you
unprotect the document.
 

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