word properties

P

pcastilloh

Cual es la propiedad de vba (word) que devuelve la pagina, linea y columna
del punto de inserción?

pch
 
H

Helmut Weber

Hi,

MsgBox Selection.Information(wdActiveEndPageNumber)
MsgBox Selection.Information(wdFirstCharacterLineNumber)
MsgBox Selection.Information(wdStartOfRangeColumnNumber)

and more ...

Beware, columnnumber might not be what you expect.

In case you get -1 as an answer,
switch between print view and normal view and back,
or the other way round.

HTH

--
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