Thread: [Solved] table removal syntax
View Single Post
 
Old 01-22-2015, 04:25 PM
EAGLE SEU EAGLE SEU is offline Windows 7 64bit Office 2007
Novice
 
Join Date: Jan 2015
Posts: 3
EAGLE SEU is on a distinguished road
Question 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
Reply With Quote