I want to set margins for all table cells to Same as the whole table, but I can't find the VBA function to do that. I thought maybe LeftPadding, RightPadding, etc. would do it, but I've not found a way to set them to the table default value. I also tried manually setting one cell and then using F4 to repeat for other cells, but that doesn't work either.

I have found that converting the table to text then back to table resets all cell margins to default, but in my particular case that messed up the table and I had to do considerable manual fixing-up.

A macro to set all table cells to Same as whole table would be great. Can it be done?