Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-09-2015, 10:59 AM
duGly duGly is offline Select a Paragraph Mid-Way Down Page 2 Windows 7 32bit Select a Paragraph Mid-Way Down Page 2 Office 2010 32bit
Novice
Select a Paragraph Mid-Way Down Page 2
 
Join Date: Jun 2015
Posts: 1
duGly is on a distinguished road
Default Select a Paragraph Mid-Way Down Page 2

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.
Reply With Quote
  #2  
Old 06-09-2015, 03:59 PM
macropod's Avatar
macropod macropod is offline Select a Paragraph Mid-Way Down Page 2 Windows 7 64bit Select a Paragraph Mid-Way Down Page 2 Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Select a Paragraph Mid-Way Down Page 2 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
Select a Paragraph Mid-Way Down Page 2 Accept all only for a paragraph or page ep2002 Word 6 10-11-2013 08:12 AM
Select a Paragraph Mid-Way Down Page 2 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

Other Forums: Access Forums

All times are GMT -7. The time now is 12:32 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft