Removing tables while preserving content

J

John Doue

I am sometimes dealing with documents which includes several tables. I
know how to remove them one by one while preserving their content, but
would like to automate the process. How do I do that please?

Thanks
 
G

Graham Mayor

How about:

Dim oTable As Table
For Each oTable In ActiveDocument.Tables
oTable.ConvertToText
Next oTable


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
J

John Doue

Dim oTable As Table
For Each oTable In ActiveDocument.Tables
oTable.ConvertToText
Next oTable

Thanks a million! Things look so simple, deceptively simple, I should be
ashamed!

Thanks again
 

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