Prev: In table, add column to the right, but then can't size it
Next: TOC Formating - TOC Styles aren't actually changing the font
From: APF on 23 Feb 2010 18:53 How can I display the measurement of the cursor's position in inches from the left margin/left edge of the page and the number of lines down from the top margin/edge of page in Word?
From: Doug Robbins - Word MVP on 23 Feb 2010 20:35 You can use the VBA Selection.Information method MsgBox "The Selection is " & Selection.Information(wdHorizontalPositionRelativeToPage)/72 & " inch from the left edge of the page." MsgBox "The Selection is " & Selection.Information(wdVerticalPositionRelativeToPage)/72 & "inch from the top of the page." The division by 72 is to convert the result from points to inches. -- Hope this helps, Doug Robbins - Word MVP Please reply only to the newsgroups unless you wish to obtain my services on a paid professional basis. "APF" <APF(a)discussions.microsoft.com> wrote in message news:59673EDD-6D9C-40FA-86E4-DAAE944A3D3F(a)microsoft.com... > How can I display the measurement of the cursor's position in inches from > the > left margin/left edge of the page and the number of lines down from the > top > margin/edge of page in Word?
From: Jay Freedman on 23 Feb 2010 21:18
You could also use the PointsToInches() function so you don't have to remember the number 72. :-) -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. On Wed, 24 Feb 2010 11:35:24 +1000, "Doug Robbins - Word MVP" <dkr(a)REMOVECAPSmvps.org> wrote: >You can use the VBA Selection.Information method > >MsgBox "The Selection is " & >Selection.Information(wdHorizontalPositionRelativeToPage)/72 & " inch from >the left edge of the page." >MsgBox "The Selection is " & >Selection.Information(wdVerticalPositionRelativeToPage)/72 & "inch from the >top of the page." > >The division by 72 is to convert the result from points to inches. > >-- >Hope this helps, > >Doug Robbins - Word MVP > >Please reply only to the newsgroups unless you wish to obtain my services on >a paid professional basis. > >"APF" <APF(a)discussions.microsoft.com> wrote in message >news:59673EDD-6D9C-40FA-86E4-DAAE944A3D3F(a)microsoft.com... >> How can I display the measurement of the cursor's position in inches from >> the >> left margin/left edge of the page and the number of lines down from the >> top >> margin/edge of page in Word? |