View Single Post
 
Old 11-26-2019, 11:01 PM
Guessed's Avatar
Guessed Guessed is online now Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,978
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

You can reset the paragraph format to bring it back to left aligned
aRow.Range.Style = "Caption"
aRow.Range.ParagraphFormat.Reset

I think your table style (which has defined the paragraphs as centred) is causing the problem you are seeing. I generally try to avoid over-specifying the table styles because they can then override the paragraph styles that I use. Table styles are somewhat problematic because once you have included an 'optional' attribute like font or paragraph format settings, it can be very hard to remove it but easy to reassign.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote