Inserting tables that can later be extracted to a separate doc

R

R Nelson

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.
 
D

Doug Robbins - Word MVP

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top