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