View Single Post
 
Old 06-02-2025, 05:19 AM
macropod's Avatar
macropod macropod is offline Windows 10 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

For the caption font size, italics, colour bold etc., you should modify the Caption Style to suit.

To accommodate long file names, change:
Code:
  With .Rows(x + 1)
    .Height = CentimetersToPoints(0#)
    .HeightRule = wdRowHeightExactly
    .Range.Style = "Caption"
  End With
to:
Code:
  With .Rows(x + 1)
    .Height = CentimetersToPoints(0#)
    .HeightRule = wdRowHeightAtLeast
    .Range.Style = "Caption"
  End With
to centre the table on the page, insert:
Code:
      .Rows.Alignment = wdAlignRowCenter
after the first:
Code:
    With oTbl
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote