Cutting and Pasting Tables

G

Gerald Perna

I want to move all of the tables in a document to the end
of that document. I have some code that will do it, but I
don't know how to keep it from looping.


For Each aTable In ActiveDocument.Tables
Set rng = aTable.Range
rng.Select
Selection.Tables(1).Select
Selection.Cut
Selection.EndKey Unit:=wdStory
Selection.Paste
Next 'aTable

Can someone help?

Thanks.

Jerry
 

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