View Single Post
 
Old 03-21-2021, 08:59 AM
Dave Gaines Dave Gaines is offline Windows 10 Office 2019
Novice
 
Join Date: Feb 2020
Posts: 5
Dave Gaines is on a distinguished road
Default How to tell if Range is within a Frame

Hi all,

I'm stepping through my document paragraph by paragraph, performing certain actions depending on its contents, position, etc. I need to know whether the paragraph in question is with a frame (not a textbox, but a frame that is created using Insert Frame). So far, have come up short. Best I can cypher right now is to expand the Range by a couple lines in each direction, and then to see if the new range contains a frame using opara.Range.frames.Count.

Does anyone else have suggestions on how to tell if a range is within a frame?

Thx in advance
Reply With Quote