Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Tables / August 2004

Tip: Looking for answers? Try searching our database.

Selecting non-contiguous rows/columns - problems in macros

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael Skovfoged - 19 Aug 2004 13:10 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.