Thread: [Solved] Allow spacing between cells.
View Single Post
 
Old 12-08-2016, 02:48 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,363
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

If you have a particular format or Table Style you want to apply, you could simply use the AutoFormat or Style method, as appropriate. That will override any space between cell settings. For example:
ActiveDocument.Tables(1).AutoFormat wdTableFormatNone
ActiveDocument.Tables(1).AutoFormat wdTableFormatElegant
ActiveDocument.Tables(1).Style = "Table Grid"
ActiveDocument.Tables(1).Style = "Table Classic 1"
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote