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 / May 2006

Tip: Looking for answers? Try searching our database.

position and size of the cell in irregular tables

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kostal.michal@gmail.com - 30 May 2006 00:15 GMT
Hello,
 is it somehow possible to find out the position of the cell relative
to a page using vba? And also the size of the merged cell? I tried
everything, but I did not found any posibillity.

michal
Jezebel - 30 May 2006 00:40 GMT
You can get the width (in points) using: selection.Cells(1).Width

You can get the vertical position of the top of the cell using:
selection.Cells(1).Range.Information(wdVerticalPositionRelativeToPage)

There's no direct way to get the height of a cell. There is a Height
property, but that reports the row height setting; which usually doesn't
help. You can calculate the height by getting the vertical position of the
beginning and end of the cell range and subtracting (and checking that the
cell is not split across pages).

> Hello,
>  is it somehow possible to find out the position of the cell relative
> to a page using vba? And also the size of the merged cell? I tried
> everything, but I did not found any posibillity.
>
> michal
 
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.