0

If I add a vbNewLine, vbCr or vbLf in a cell, and when I convert sheet to a PDF file, either using WorkSheet.SaveAs PdfFile, 17, Worksheet.ExportAsFixedFormat, or manually use Save As or Export they turn into a little rectangle symbol.

enter image description here

How do I avoid this?

Community
  • 1
  • 1
Dmitrij Holkin
  • 1,995
  • 3
  • 39
  • 86
  • Maybe try to Replace those three characters with a " " before to convert. The little square means that the char is not rendered in PDF (so it remains empty) – Matteo NNZ Apr 07 '15 at 06:55
  • I have not only 3 characters, i have a lot of them and they changes dinamicly acording on that user selected – Dmitrij Holkin Apr 07 '15 at 07:00

2 Answers2

1

Does this hapens when you trying to add newline as vbCrLf ? Then try use only vbLf

0

I know it an old trend but for me it worked using vbLf as newline command.