• Active Table (VBA/Word 2000 SP-3)

    Author
    Topic
    #409551

    Hi,

    Is there a way to actively work on a table after using the Go To command? That is, is there an “active table” property that can be used? In a Word doc, I’m searching for a heading that is always followed by a table. After I find the heading, I go to the table. At that point, I’d like to work with particular columns, rows, and cells. I’d use the Tables collection tools, but with the macro I’m developing, the index number of the subject table would vary.

    Thanks,
    Bob

    Viewing 3 reply threads
    Author
    Replies
    • #873752

      If you can get the insertion point into the table, you can use Selection.Tables(1) to reference it. If there are nested tables it can get messy.

    • #873753

      If you can get the insertion point into the table, you can use Selection.Tables(1) to reference it. If there are nested tables it can get messy.

    • #873758

      First, you need to find the heading.
      If the table follows, create a table, or range, object that refers to that table and operate on the table via that object.

    • #873759

      First, you need to find the heading.
      If the table follows, create a table, or range, object that refers to that table and operate on the table via that object.

    Viewing 3 reply threads
    Reply To: Active Table (VBA/Word 2000 SP-3)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: