Want to know Line no. in which cursor is placed.

K

Kushal

I want to design a macro which when run can display the line no. of cursor
position.
 
H

Helmut Weber

Hi Kushal,

MsgBox selection.Information(wdFirstCharacterLineNumber)

if that returns -1, you may have to switch views
around a bit beforehand, like from normal to print view
and back or vice versa.

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 
Top