How to delete multiple tables?

  • Thread starter Á÷À˵ÄË«Óã
  • Start date
Á

Á÷À˵ÄË«Óã

We can use Talbe/Delete/Talbe to delete a talbe.
But if we select multiple talbes, the command is
disabled. Is there any method to delelte multiple
tables at once? I dont want to use VBA.

Thanks in advance.
 
G

Greg Maxey

Yes, but you don't want to use it. If you change your mind:

Sub DeleteTables()
Dim oTbl As Word.Table
For Each oTbl In Selection.Range.Tables
oTbl.Delete
Next
End Sub
 
J

Jezebel

Cut deletes the entire table if the selection also includes at least one
character outside the table. So if you select all the tables plus the
intervening matter, delete zaps the lot.
 
T

Tony Jollans

I beg to differ on that. Cut deletes a table if the whole table (and nothing
else) is selected.

Neither Cut nor Delete - nor any other single action - deletes tables in
discontiguous selections
 
J

Jezebel

You're right. It's Delete that removes only the contents. As for the second
point, I wasn't refering to discontinuous sections. Just different tables:
create a table, then some paragraphs, then another table. Select both tables
and all that's between them. Now Delete.
 
T

Tony Jollans

Sorry, yes the second point wasn't really directed at you - I could have
been clearer :)

I'm not sure, on re-reading, whether the OP wants to work with discontiguous
selections or not,
 

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