Results 1 to 2 of 2

Thread: removing tables from a word document

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    1

    removing tables from a word document

    Hi, can anyone help me in writing a macro which would remove the tables in a word document. Please let me know the idea how to do that.

    Thanks

  2. #2
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    Re: removing tables from a word document

    G'Day Deen, and welcome to the Forum


    This may be a place to start.
    VB Code:
    1. Dim intCount As Integer
    2. Dim intIdx As Integer
    3.  
    4. ActiveDocument.Select
    5. intCount = Selection.Tables.Count
    6.  
    7. For intIdx = intCount To 1 Step -1
    8.     Selection.Tables(intIdx).Delete
    9. Next




    Bruce.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width