Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.pagelayout
APF APF is offline
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.word.pagelayout
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default 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   Report Post  
Posted to microsoft.public.word.pagelayout
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default 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   Report Post  
Posted to microsoft.public.word.pagelayout
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default 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   Report Post  
Posted to microsoft.public.word.pagelayout
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default 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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I return to last cursor position in MS Word? Martin at Catlin Microsoft Word Help 4 May 5th 23 02:49 PM
Cursor click position in word document Vineeth Microsoft Word Help 1 August 22nd 09 01:29 PM
MS Word document is opening to last cursor position Darin Microsoft Word Help 3 October 18th 06 05:51 PM
Cursor position when opening Word N0mad Microsoft Word Help 5 December 9th 05 11:27 PM
How do I change the (position) cursor style in Word Harmeet Kalra Microsoft Word Help 1 May 23rd 05 10:48 AM


All times are GMT +1. The time now is 03:16 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"