table removal syntax
Hello everyone
I have a lot of tables in word document
and I want to delete one table and leave one .. until the end of document
I found in internet this code - to remove all tables -
but still have a syntax error ...
--------------------
Sub Removetables ()
Dim oTable As Table
Each oTable In ActiveDocument.Tables
oTable.Delete
Next oTable
End Sub
-----------------
Can someone help me to write code to delete one table and leave one ...
Thanks for everyone
|