Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-03-2025, 02:13 AM
macropod's Avatar
macropod macropod is offline Measuring Positions in msword Windows 10 Measuring Positions in msword Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,521
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

There is no need to select anything. For example:


Code:
Sub GetParagraphVerticalPositions()
Dim para As Paragraph, vertPos As Single
For Each para In ActiveDocument.Paragraphs
  vertPos = para.Range.Information(wdVerticalPositionRelativeToPage)
  MsgBox ("Paragraph: " & para.Range.Text & "Vertical Position: " & vertPos)
Next para
End Sub
Works for me...
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
vertical postion



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why my watermark are placed in different positions in some pages? shanlau Word VBA 2 12-04-2018 01:51 AM
Page numbers in different positions NugentS Word 3 12-04-2018 01:24 AM
Visio Pro 2016: Measuring the total length of a series of interconnected lines busander Visio 3 07-11-2017 09:53 AM
Measuring Turnaround Time quirkycanuck Outlook 0 03-03-2015 01:22 PM
Using MSWord 2003 docs in MSWord 2010 Joe Watson Word 7 05-31-2014 11:27 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:33 PM.


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