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

You insert:
Code:
      .Rows.Alignment = wdAlignRowCenter
after the first:
Code:
    With oTbl
The caption truncation is cause by your use of extra periods in the filename (not a good practice). This can be overcome by replacing:
Code:
        StrTxt = Split(.SelectedItems(j), "")(UBound(Split(.SelectedItems(j), "")))
        StrTxt = Split(Split(StrTxt, "")(UBound(Split(StrTxt, ""))), ".")(0)
(which is wrong anyway) with:
Code:
        StrTxt = Split(.SelectedItems(j), "\")(UBound(Split(.SelectedItems(j), "\")))
        StrTxt = ": " & Left(StrTxt, InStrRev(StrTxt, "."))
The other code changes I suggested will already allow for the line wrapping.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote