Hi lilitu
lilitu wrote:
I'm working with interop and word 2003. I have a template containing a
table, and I want to copy this table to create multiple tables (to fill it
with different data).
Any tip on how to do this?
any help is appreciated
well, I'm definitely not a developer, but since you ask for _any_ help
.... :-)
the Word/UI way to proceed might be:
- if you know exactly how many tables your document will need, then put
as many tables already into your template and fill them at run-time
- if this information is not available before run-time, create an
AutoText with the table, and insert it as needed.
In the latter case, you might also insert the information as normal,
tab-delimited text, and convert it to a table (and apply a table style).
Again, I'm not a developer, but I suppose this could be quicker.
If you need help with the object model side of things, maybe one of the
..vba newsgroups might be more appropriate.
HTH
Robert
--
/"\ ASCII Ribbon Campaign | MSFT |
\ / | MVP | Scientific Reports
X Against HTML | for | with Word?
/ \ in e-mail & news | Word |
http://www.masteringword.eu/