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 / Programming / June 2005

Tip: Looking for answers? Try searching our database.

Multiple selection

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alex - 06 Jun 2005 20:03 GMT
With Word, it is possible to select multiple pieces of text at one (using the CTRL key).

For example, given the following text:

   12345<p>
   67890<p>

I can mark "234", press the CTRL key and mark "789".

My question is:
How can I detect that a selection is comprised of multiple parts and how do I access each part?

Thank you.

Best wishes,
Alex.

Signature

Address email to user "response" at domain "alexoren" with suffix "com"

Jay Freedman - 07 Jun 2005 03:13 GMT
>With Word, it is possible to select multiple pieces of text at one (using the CTRL key).
>
[quoted text clipped - 12 lines]
>Best wishes,
>Alex.

Hi Alex,

The programmatic support for multiple selections is really crappy, and
it hasn't improved between Word 2002 and 2003. All the usable
information I know of is in this article:
http://support.microsoft.com/kb/q288424/.

--
Regards,
Jay Freedman
Microsoft Word MVP         FAQ: http://word.mvps.org
Alex - 07 Jun 2005 05:09 GMT
Hello Jay,

> The programmatic support for multiple selections is really crappy, and
> it hasn't improved between Word 2002 and 2003. All the usable
> information I know of is in this article:
> http://support.microsoft.com/kb/q288424/.

Thanks.

Is there a way to find out that a selection is discontiguous, or must I do a Selection,ShrinkDiscontiguousSelection every time to be sure?

Best wishes,
Alex.

Signature

Address email to user "response" at domain "alexoren" with suffix "com"

Jay Freedman - 07 Jun 2005 15:33 GMT
>Hello Jay,
>
[quoted text clipped - 9 lines]
>Best wishes,
>Alex.

I'm not aware of any other way to handle it. OTOH, it depends on what
you're doing with the selection.

If you're applying formatting of the kinds in the first list, you
don't want to shrink the selection -- that would cause the formatting
to apply only to the last piece. If you're inserting text, it doesn't
make any difference whether you shrink first or not. If you're
converting the text to a table, you have to shrink it first or else
use error-trapping.

--
Regards,
Jay Freedman
Microsoft Word MVP         FAQ: http://word.mvps.org
Alex - 08 Jun 2005 01:19 GMT
Hello Jay,

> I'm not aware of any other way to handle it. OTOH, it depends on what
> you're doing with the selection.
[quoted text clipped - 5 lines]
> converting the text to a table, you have to shrink it first or else
> use error-trapping.

I just want to determine whether the selection is discontiguous or not.

Best wishes,
Alex.

Signature

Address email to user "response" at domain "alexoren" with suffix "com"

 
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.