I felt “.WrapText = True” is unstable, suggest “.justify”.
Sub ZZ()
Application.ScreenUpdating = 0
Application.DisplayAlerts = 0
Dim arr As Variant, MyW As Single, OW As Single, r%
With Sheets("data")
arr = .[c1].CurrentRegion
.[c14].WrapText = False
.[c14].MergeCells = False
OW = .[c14].ColumnWidth
For i = 3 To 9
MyW = MyW + Cells(14, i).ColumnWidth
Next
.[c14].ColumnWidth = MyW
For i = 2 To UBound(arr)
.Range("c14:c" & .[c65536].End(3).Row) = ""
.[c14] = arr(i, 1)
.[c14].Justify
r = r + 1
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
Path & "Item" & r & ".pdf", Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:= _
False
Next
.[c14].ColumnWidth = OW
End With
Application.ScreenUpdating = 1
Application.DisplayAlerts = 1
End Sub
Bookmarks