Table in Word XP

A

Alain+Ivy

Hi all
I am looking for some help to fix the following problem.
When I create a table in Word, it it possible to add a row by pressing the
Tab key when the cursor is in the last cell of the table. I wish to be able
to lock up the number of row so that it become impossible to add another
row. It would be pactical when many independant table are created in the
same document. (I do not want create a form; it is not always the right
solution. I never found a solution by using Word "normal" features.
Is there a way to do that by using some VBA code?
Thank you very much in advance for any advice, help or code.

Alain Kadlec
Ottawa
 
J

Jean-Guy Marcil

Alain+Ivy was telling us:
Alain+Ivy nous racontait que :
Hi all
I am looking for some help to fix the following problem.
When I create a table in Word, it it possible to add a row by
pressing the Tab key when the cursor is in the last cell of the
table. I wish to be able to lock up the number of row so that it
become impossible to add another row. It would be pactical when many
independant table are created in the same document. (I do not want
create a form; it is not always the right solution. I never found a
solution by using Word "normal" features.
Is there a way to do that by using some VBA code?
Thank you very much in advance for any advice, help or code.

There is no easy way to do this.

Why? there maybe an easier solution to your situation.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
M

Mike

I am not sure my situation is the same, but I created a form where if you
tab out of the last cell it will automatically recreate the table. I
created an exit macro for the last cell which unlocked the form, copied the
table (I used an AutoText entry for this), then relocked the form. Since
you don't want this to happen, you could create another cell - or even a
macro button - that would do this.

Mike
 
A

Alain+Ivy

In my specific case I am not in a form. It is a regular document with two
tables. The users need to write freely in the cells and the cells must be
expendable. The users do not want any "forced" formatting. It would nice
to be able to lock up the table(s) once created.
 
K

Klaus Linke

See your post in word.word97vba.
Please don't send the same message to several groups. Cross-posts (which are done by putting several newsgroups in the header of the same message) aren't as "bad", but usually not needed either because many of us read all the relevant groups anyway.

:) Klaus
 

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