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
Jay Freedman - 20 Aug 2004 00:34 GMT
Hi Michael,
The VBA support for discontiguous selections is extremely poor. A
description and the few pitiful workarounds are given at
http://support.microsoft.com/?kbid=288424.
--
Regards,
Jay Freedman http://aspnet2.com/mvp.ashx?JayFreedman
Microsoft Word MVP FAQ: http://word.mvps.org
>Hi,
>
[quoted text clipped - 10 lines]
>
>Michael Skovfoged
Michael Skovfoged - 20 Aug 2004 11:41 GMT
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
> Hi Michael,
>
[quoted text clipped - 21 lines]
> >
> >Michael Skovfoged