select noncontiguous rows in a table using VBA

Posted on 2012-08-16
Last Modified: 2012-08-17
Dear Experts:

for some specfic reasons I would like ...
... (1) to select all the rows (of the only table in the current document) where there is an entry in Column A. and alternatively
... (2) to select all the rows where there is no entry in Column C

Most of the rows selected will be non-contiguous then.

Hope this is feasible.

Thank you very much in advance.

Regards, Andreas
Question by:AndreasHermle
    LVL 59

    Accepted Solution

    I don't believe you can select non contiguous rows in word.  Is it something that can be looped over?


    Author Comment

    Hi Chris,

    thank you very much for your comment. About ten minutes ago I happened to read a forum post on that subject by a Word MVP who said the same thing.

    Thank you very much.

    Regards, Andreas
    LVL 22

    Expert Comment

    Hi Andreas,

    for some specfic reasons I would like ...

    What are you planning to do once all rows are selected? If you want to apply some sort of formatting, that can be done on a row by row basis.


    Author Comment

    Hi Paul,

    thank you very much for your answer. As a matter of fact, I found a workaround for my problem. Thank you anyways.

    Regards, Andreas

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    When creating Microsoft Word-based forms there may be a need to have a form field repeated throughout the whole document. For instance, with a company name, you may want this information repeated automatically throughout the document rather than man…
    I'm writing to share my clumsy experience in using this elegant tool so you can avoid every stupid mistake I made. (I leave it to the authorities to decide if this deserves a place in the Knowledge archives.)  Now that I am on the other side of my l…
    This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.
    Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now