Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2006

Tip: Looking for answers? Try searching our database.

Position of Cell

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jim Gibbs - 17 Feb 2006 21:44 GMT
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
Helmut Weber - 17 Feb 2006 22:30 GMT
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.

Signature

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

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

Jim Gibbs - 18 Feb 2006 00:48 GMT
Thank you very much.

Jim
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.