Re: Table Questions
From: Ken Hutson (ken.hutson_at_goetting.com)
Date: 09/16/04
- Next message: Stephanie Krieger: "Re: Table Questions"
- Previous message: anonymous_at_discussions.microsoft.com: "Losing Bookmarks"
- In reply to: Stephanie Krieger: "Table Questions"
- Next in thread: Stephanie Krieger: "Re: Table Questions"
- Reply: Stephanie Krieger: "Re: Table Questions"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 16 Sep 2004 16:55:01 -0500
Hi Stephanie,
I saw cell padding earlier but I'm hoping I can find how far the borders are
fom the document margins.
Keep a running total of column widths?
Thanks,
Ken Hutson
San Antonio, TX
"Stephanie Krieger" <MODD_2003NO@SPAMmsn> wrote in message
news:102901c49c36$b946f9e0$a301280a@phx.gbl...
> Hi, Ken,
>
> First -- you can use Selection.Information to determine
> if your insertion point is in a table (wdWithinTable is
> one of the available constants):
>
> If Selection.Information(wdWithinTable) = True Then ...
>
> To find the cell margins programmatically -- the
> properties (of either a specified item in the Tables or
> Cells collection objects) are called:
>
> TopPadding
> BottomPadding
> LeftPadding
> RightPadding
>
> i.e....
>
> Selection.Tables(1).TopPadding
>
> Will return the top margin value for all cells in the
> first table in your selection (note that the Tables
> collection object can be used with either the Selection
> or ActiveDocument objects).
>
> You can find the cell margins in the U.I. through Table,
> Table Properties -- click Options on the Table tab to see
> or change the settings for the whole table. Click Options
> on the Cell tab to see or set unique settings for only
> the active or selected cells.
>
> Hope that helps.
>
> Stephanie Krieger
> author of Microsoft Office Document Designer (from
> Microsoft Press)
> email: MODD_2003 at msn dot com
> blog: arouet.net
> >-----Original Message-----
> >Hi Group,
> >
> >I am looping through the paragraphs collection in my
> document. When I
> >encounter a paragraph that resides in a table;
> >
> >First of all, where do I look to determine if the
> paragraph is inside a
> >table?
> >
> >I am also interested in knowing how to find distances,
> especially from;
> >left margin to the cell left border.
> >right margin to the cell right border.
> >top margin to the cell top border.
> >bottom margin to the bottom cell border.
> >Where can I find these values?
> >
> >Thanks,
> >Ken Hutson
> >San Antonio, TX
> >
> >
> >.
> >
- Next message: Stephanie Krieger: "Re: Table Questions"
- Previous message: anonymous_at_discussions.microsoft.com: "Losing Bookmarks"
- In reply to: Stephanie Krieger: "Table Questions"
- Next in thread: Stephanie Krieger: "Re: Table Questions"
- Reply: Stephanie Krieger: "Re: Table Questions"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|