Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Carry on filling in a table in Word 97

Status
Not open for further replies.

mmtraining

IS-IT--Management
Mar 18, 2002
104
DE
I have a document template which is to be used for project managing. Being as the documents that are created using this templante are sometimes long and complex, I have offered the user the possibility of creating a table of abbreviations using a vba sub procedure.

The macro is quite simple. People use a format to show what is an abbreviation, I search for that format, reformat the text without it, copy the text into a table and pick up the applause.

Things work out nicely apart from one teeny weeny thing.

How do I see whether there is already a table with contents in the document? What I mean is, if the person has already created the tabel and wants to continue it using my macro, I don't want to kill the whole table and start again but to add a line at the end of the table and continue from there.

My table has got a text mark which I can test for: AbkTabelle
What I need to do now is to see which is the last row in the table and if the cell on the lefthand side is empty or not. If it is empty then I can write into it, if not, then I can add a row and go on from there.

Thanx in advance for any good ideas. :)

Carol
Berlin, Germany
 
I would suggest changing tack. You could create a global template with the table loaded as an autotext entry. If a user wants to add the table, all they would have to do is type the name of the entry in their document and press f3.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top