VBA equivalent of a cell margin's "Same as Whole Table" check

K

Kurt

All the help documentation says is if, say, the .LeftPadding property is set,
it overrides the tables .LeftPadding property. I need to do the opposite:
make the cells follow the default table.LeftPadding property.

Word seems not to have anything like
Selection.Tables(1).Cell(1, 1).LeftPadding ="Back to the Deftaul"

Thanks for your help!
 
J

Jezebel

There doesn't seem to be any code method for doing this. I use the following
as a workaround -- cludgy but it works ...

pTable.Cell(pRowIndex, pColIndex).Select
SendKeys "%s{ENTER}"
Dialogs(wdDialogTableCellOptions).Show

Note that you can't use the table default for some padding values and not
others -- it's an all-or-nothing thing.
 

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