![]() |
|
|
|
#1
|
|||
|
|||
|
I am using VBA with Word 2010. I would like to programatically select a paragraph half-way down page 2 of a document. (Once I select the range, I will be pasting and repositioning a textbox, but I already know how to do that.) The number of paragraphs in the document and the length of each are variable, so I can't just tell it to select the 7th paragraph (for example), since this will be different for each document. I would appreciate your suggestions. |
|
#2
|
||||
|
||||
|
VBA can't really work with "select a paragraph half-way down page 2 of a document". Given that pagination can change by doing something as simple as changing the active printer, what's half-way down the page on one Word session/PC might be elsewhere on another Word session/PC. Besides, is this half-way between the top & bottom edges of the page or half-way between the top & bottom margins?
If the paragraph concerned always contains some known content (e.g. a particular phrase), you could use Find to locate it.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Paragraph on a static position on page?
|
ecce | Word | 3 | 05-13-2014 02:34 PM |
| Template Document Front Page with Select Options | RichTea88 | Word | 2 | 01-28-2014 03:40 PM |
Accept all only for a paragraph or page
|
ep2002 | Word | 6 | 10-11-2013 08:12 AM |
word won't let me put more than one paragraph per page
|
bethtop | Word | 1 | 02-07-2012 12:21 PM |
| Paragraph ending in following page | tadlomc | Word | 1 | 01-18-2012 05:31 AM |