Selecting non-contiguous rows/columns - problems in macros

M

Michael Skovfoged

Hi,

When I select non-contiguous cells/columns/rows in Word 2002/2003, I
am having trouble with my macro. It seems as if only the last
selection made is available in the Selection object. If I select one
row from two different tables, then "Debug.Print
Selection.Tables.Count" tells me there is one table selected. I would
like to detect if there are non-contiguous rows/columns selected, is
it possible?. If possible I would like to remove the possibility of
making such selections. Any ideas?

Regards,

Michael Skovfoged
 
M

Michael Skovfoged

Thanks for your help.

I am going to use Selection.ShrinkDiscontiguousSelection which seems
to be all there is. It works as expected, unless you have selected two
columns in a table. In this case ShrinkDiscontiguousSelection will
select the entire table!!.

Regards,
Michael
 
Top