Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.pagelayout
|
|||
|
|||
Cursor position (Word)
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? |
#2
Posted to microsoft.public.word.pagelayout
|
|||
|
|||
Cursor position (Word)
You can use the VBA Selection.Information method
MsgBox "The Selection is " & Selection.Information(wdHorizontalPositionRelative ToPage)/72 & " inch from the left edge of the page." MsgBox "The Selection is " & Selection.Information(wdVerticalPositionRelativeTo Page)/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" wrote in message ... 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? |
#3
Posted to microsoft.public.word.pagelayout
|
|||
|
|||
Cursor position (Word)
You can use the VBA Selection.Information method
MsgBox "The Selection is " & Selection.Information(wdHorizontalPositionRelative ToPage)/72 & " inch from the left edge of the page." MsgBox "The Selection is " & Selection.Information(wdVerticalPositionRelativeTo Page)/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" wrote in message ... 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? |
#4
Posted to microsoft.public.word.pagelayout
|
|||
|
|||
Cursor position (Word)
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" wrote: You can use the VBA Selection.Information method MsgBox "The Selection is " & Selection.Information(wdHorizontalPositionRelativ eToPage)/72 & " inch from the left edge of the page." MsgBox "The Selection is " & Selection.Information(wdVerticalPositionRelativeT oPage)/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" wrote in message ... 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? |
#5
Posted to microsoft.public.word.pagelayout
|
|||
|
|||
Cursor position (Word)
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" wrote: You can use the VBA Selection.Information method MsgBox "The Selection is " & Selection.Information(wdHorizontalPositionRelativ eToPage)/72 & " inch from the left edge of the page." MsgBox "The Selection is " & Selection.Information(wdVerticalPositionRelativeT oPage)/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" wrote in message ... 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? |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I return to last cursor position in MS Word? | Microsoft Word Help | |||
Cursor click position in word document | Microsoft Word Help | |||
MS Word document is opening to last cursor position | Microsoft Word Help | |||
Cursor position when opening Word | Microsoft Word Help | |||
How do I change the (position) cursor style in Word | Microsoft Word Help |