mmtraining
IS-IT--Management
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
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