#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
Please disregard, think I answered it myself. Upon further investigation, looks like oPara.Range.Frames.Count returns "1" if range is within a frame.
|
#3
|
||||
|
||||
Cross-posted at: MS Word VBA how to tell if Range is within a Frame - Stack Overflow
For cross-posting etiquette, please read: Excelguru Help Site - A message to forum cross posters
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cant sort margins in frame page frame documents | Zakko | Word | 10 | 04-05-2019 06:37 PM |
Distribute text in one cell across a range of cells (overcoming selection.range.cells.count bug) | slaycock | Word VBA | 0 | 02-18-2017 07:00 AM |
Find if Date range falls within another range | Triadragon | Excel | 3 | 05-02-2016 11:48 AM |
Name a Range in a Word Document and then copy that range to the end of the doc w button click | DanNatCorning | Word VBA | 1 | 04-29-2016 10:47 PM |
Trouble fomatting a frame - top of letter cut off in frame - line spacing | gandalf458 | Word | 4 | 12-10-2014 03:04 AM |