View Single Post
  #12   Report Post  
Posted to microsoft.public.word.tables
alborg alborg is offline
external usenet poster
 
Posts: 67
Default How do I lock a table cell in Word?

Hi Kathryn:

One error-

THIS: "Place table on your template. For this example, place a 2 row, 2
column
template."
SHOULD READ AS: "Place table on your template. For this example, place a 2
row, 2 column [table]."

ALSO: I forgot to add the enabled line-

"ActiveDocument.Tables(1).Columns.Count).Range.For mFields(1).Enabled = False"

What you can do is to disable the prior row's FormFields-

"ActiveDocument.Tables(1).Cell(ActiveDocument.Tabl es(1).Rows.Count-1,
ActiveDocument.Tables(1).Columns.Count).Range.Form Fields(1).Enabled = False"

[note the ...Rows.Count-1...]

Cheers,
Al



"Kathryn Pundt" wrote:

Okay, I'll let you know how it goes.

As for the "how to programmatically add new rows with textboxes "
instructions, I don't know how to use user-programming. But, am very willing
to learn if you have the time...

"alborg" wrote:

Hi Kathryn:

Yup... that's it. You gotta "lock" (i.e. disable) the textbox controls, not
the table.

BTW, the idea on how to programmatically add new rows with textboxes was
obtained from one of the most popular threads (check Show- Helpful threads)
with the title "Subject: How to insert multiple rows in tables". It
really is cool. The way I did it is the slightly improved version that works
in Word 2000/2002/2003 since the textbox "name" method didn't work in the MS
Word 2000 due to a Word bug.

Cheers,
AL

"Kathryn Pundt" wrote:

I'm am not sure I understand. This is what I understand you are trying to
convey.

Create a table. Insert textboxes into the table? Then, lock the texbox?

"Kathryn Pundt" wrote:

I am creating a template in Word using tables. I want to lock certain cells
so no one can alter the contents.