• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Removing tables in a document and convert the rest to tables

YasserKhalil

Well-Known Member
Hello everybody
I have a word document which have many tables .. and other lines of data
I need to remove all the tables and the other lines to be converted to table of four columns
Thanks advanced for help
 

Attachments

  • Sample.zip
    59 KB · Views: 0
I found this piece of code that remove all the tables
Code:
Sub Removetables()
    Dim oTable As Table
    For Each oTable In ActiveDocument.Tables
        oTable.Delete
    Next oTable
End Sub

Just need help to convert the remains (the lines left after the tables removed) I need to convert them to table
 
Back
Top