How to determine if an entire table row is selected (Word)?

  • Thread starter ArchieD via OfficeKB.com
  • Start date
A

ArchieD via OfficeKB.com

Hi all

Can anyone tell me how to determine if an entire row in a Word table is
selected, please? I can establish that the cursor is within a table & what
the row number is but I cannot work out how to tell it is selected :-( I'm
sure it's something v. simple that I am just trying to make complicated.

Thanks for any help.

ArchieD
 
J

Jezebel

Actually not so simple. You could compare the selection with the row: this
works provided the table is uniform. Something like --

if selection = selection.tables(1).rows(selection.cells(1).rowindex).range
then ..

What are you doing that it matters?
 
A

Art H

Hi ArchieD,

See if this works for you--it works for me on Word 2000.

If Selection.Type = wdSelectionRow Then

Art
 

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