View Single Post
 
Old 11-29-2023, 12:58 PM
Italophile Italophile is offline Windows 11 Office 2021
Expert
 
Join Date: Mar 2022
Posts: 554
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

Quote:
Originally Posted by Rfuchs730 View Post
At the risk of being even more of a pain, is there a string of code I can add to the macro so that the caption text is left justified within the cell?
Change:
Code:
            Set imgTable = .Tables.Add(Range:=.Characters.Last, NumRows:=imgCount, NumColumns:=2)
To:
Code:
            .Paragraphs.Last.Range.ParagraphFormat.Alignment = wdAlignParagraphLeft
            Set imgTable = .Tables.Add(Range:=.Characters.Last, NumRows:=imgCount, NumColumns:=2)
This will ensure that the table contents are left aligned
Reply With Quote