Position of Cell

J

Jim Gibbs

Is there code which will return the position of a cell within a table
relative to the page?

I have pictures inserted in a two column table and I am trying to use a
macro to insert shapes such as arrows in the center of the picture.


Jim
 
H

Helmut Weber

Hi Jim,
Is there code which will return the position of a cell within a table
relative to the page?

No, IMHO.

You may select the cell,
collapse the selection,
and see what this returns:

MsgBox Selection.Information(wdHorizontalPositionRelativeToPage)
MsgBox Selection.Information(wdVerticalPositionRelativeToPage)
MsgBox Selection.Cells(1).Width
MsgBox Selection.Cells(1).Height

Height (row), it seems, must have been set to "exactly".

Do a bit of calculating, and get the center of the cell.

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