Results 1 to 2 of 2
  1. #1
    4 Star Lounger
    Join Date
    Nov 2002
    Location
    London, Gtr London, England
    Posts
    496
    Thanks
    8
    Thanked 0 Times in 0 Posts

    How to test that selction is a picture (VBA/Word 2003)

    How do I test if the current selection is a picture?

    thanks

    luca

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: How to test that selction is a picture (VBA/Word 2003)

    You can inspect Selection.Type. If the selection is a floating shape, Selection.Type = wdSelectionShape, and if the selection is an inline shape, Selection.Type = wdSelectionInlineShape. So you could use
    <code>
    Select Case Selection.Type
    Case wdSelectionShape, wdSelectionInlineShape
    ...
    Case Else
    ...
    End Select</code>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •