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 / August 2006

Tip: Looking for answers? Try searching our database.

Determine if selection is a image or object

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Flemming Dahl - 15 Aug 2006 20:33 GMT
Hi all,

How do I determin if the selection is an image, textbox or just document
location?

Thanks,
Flemming
Dave Lett - 15 Aug 2006 20:56 GMT
Hi Flemming,

You might be able to use

Selection.Type

this will return one of the following WdSelectionType constants
wdSelectionBlock
wdSelectionFrame
wdSelectionIP
wdSelectionRow
wdNoSelection
wdSelectionColumn
wdSelectionInlineShape
wdSelectionNormal
wdSelectionShape

HTH,
Dave

> Hi all,
>
[quoted text clipped - 3 lines]
> Thanks,
> Flemming
Flemming Dahl - 16 Aug 2006 20:11 GMT
Thanks Dave this I can use :-)

Flemming

> Hi Flemming,
>
[quoted text clipped - 23 lines]
>> Thanks,
>> Flemming
Jezebel - 16 Aug 2006 00:46 GMT
The Selection is always a Range (by definition). The questions to ask are a)
what storyrange you are in, and b) what objects, if any, are contained
within that range.

Start with the Selection.Information() function.

Use the Count property of the various object collections -- eg If
Selection.Shapes.Count > 0 ...

Compare the Selection's Start and End values to determine if the selection
is a point or a span of document.

> Hi all,
>
[quoted text clipped - 3 lines]
> Thanks,
> Flemming
 
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.