Re: Quick way to adjust table cell margins
- From: "Dennis S" <DennisS@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 30 Mar 2005 10:01:04 -0800
Cindy:
Thanks for your input.
It is true you can select the entire column of a table by:
ActiveDocument.tables(2).columns(1).selection
However, the methods and properties are limited and not the same as the WORD
user interface. For example, one cannot set the left margin of all cells in
a particular column through VBA (leftpadding property is not available) on
existing WORD tables. It is only available on a indivdual cell basis.
Therefore, one would have to naviagate each cell in a column which is
prohibitively intensive for a large table.
Any other ideas?
"Cindy M -WordMVP-" wrote:
> Hi =?Utf-8?B?RGVubmlzIFM=?=,
>
> > I need to adjust the cell margins for all cells in a table. Through the user
> > interface it appears this can be done by selecting the column(s) of the table
> > and adjusting the table cell properites (i.e. Table>Table Properties...,Cell,
> > Options, Top, Left,Right, Bottom) - very quick. However, through VBA code
> > this is only applicable to the Table (default for entire table) or Cell, not
> > column. The default table values does not help since a table which already
> > has cell margins set are not overridden by the table default properties.
> > The cell overrides the table properties.
> >
> Try selecting the column, then applying the property to the SELECTION.Cells
>
> That's the only way to quickly process an entire column or group of cells that
> aren't in a contiguous line (row).
>
> Cindy Meister
> INTER-Solutions, Switzerland
> http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
> http://www.word.mvps.org
>
> This reply is posted in the Newsgroup; please post any follow question or reply
> in the newsgroup and not by e-mail :-)
>
>
.
- Follow-Ups:
- Re: Quick way to adjust table cell margins
- From: Cindy M -WordMVP-
- Re: Quick way to adjust table cell margins
- Prev by Date: Emailing a form
- Next by Date: Unicode String Parameters in DLL's
- Previous by thread: Emailing a form
- Next by thread: Re: Quick way to adjust table cell margins
- Index(es):
Relevant Pages
|