A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

copy table from a template table



 
 
Thread Tools Display Modes
  #1  
Old October 20th, 2008, 04:12 PM posted to microsoft.public.word.tables
lilitu
external usenet poster
 
Posts: 1
Default copy table from a template table

Hi,

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
  #2  
Old November 9th, 2008, 11:22 AM posted to microsoft.public.word.tables
Robert M. Franz (RMF)
external usenet poster
 
Posts: 1,743
Default copy table from a template table

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/
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:10 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.