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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top