Group:  Microsoft Word ยป microsoft.public.word.tables
Thread: Inserting tables that can later be extracted to a separate doc

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Inserting tables that can later be extracted to a separate doc
R Nelson 23.08.2006 15:12:01
I need to insert numerous tables into a very large document and maintain some
means of being able to extract the tables (at a later time) to a separate
document.
Re: Inserting tables that can later be extracted to a separate doc
"Doug Robbins - Word MVP" <dkr[ at ]REMOVECAPSmvps.org> 23.08.2006 20:47:25
Use a macro to do the extraction

Dim Source as Document, Target as Document
Dim i as Long
Dim tablerange as Range

Set Source = ActiveDocument 'the document containing the tables

Set Target = Documents.Add

For i = 1 to Source.Tables.Count
Set tablerange = Source.Tables(i).Range
Target.Range.InsertAfter tablerange & vbCr
Next i

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"R Nelson" <R Nelson[ at ]discussions.microsoft.com> wrote in message
news:ECF729A8-CCB0-4B60-AE5B-6557C9040F6C[ at ]microsoft.com...
[Quoted Text]
>I need to insert numerous tables into a very large document and maintain
>some
> means of being able to extract the tables (at a later time) to a separate
> document.


Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net