DougRobertson
Active Member
- Joined
- Sep 22, 2009
- Messages
- 334
- Office Version
- 365
- Platform
- Windows
Greetings!
Years ago I created a macro which converted Publisher files to PDFs and created emails which they would then be attached to. It's worked flawlessly for years.
Then along came the Windows 10 Anniversary Update . . . . or so the timing would suggest, and now most of the PDFs show up with internal boxes for text, but no actual text. When I run the code line by line everything comes out perfectly, but when I run the macro in real time, again the text is missing.
Here's the code I'm using:
Thank you in advance for any and all help!
~ DWR
Years ago I created a macro which converted Publisher files to PDFs and created emails which they would then be attached to. It's worked flawlessly for years.
Then along came the Windows 10 Anniversary Update . . . . or so the timing would suggest, and now most of the PDFs show up with internal boxes for text, but no actual text. When I run the code line by line everything comes out perfectly, but when I run the macro in real time, again the text is missing.
Here's the code I'm using:
Code:
Dim pubApp As Publisher.Application
Dim pubDoc As Publisher.Document
Set pubApp = New Publisher.Application
pubApp.Open "C:\Folder1\EAGLE'S VIEW.pub"
pubApp.ActiveDocument.ExportAsFixedFormat pbFixedFormatTypePDF, _
"C:\Folder2\" & _
"EAGLE'S VIEW - A.pdf"
Thank you in advance for any and all help!
~ DWR