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

Re: Adding Rows to Locked Table by Jonathan

Jonathan
Sat Jan 08 05:32:11 CST 2005

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.

--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup

"Matt" <Matt@discussions.microsoft.com> wrote in message
news:6470487C-A16D-43A1-8D8C-6B51DDD73028@microsoft.com...
> 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