OaklandJim
Well-known Member
- Joined
- Nov 29, 2018
- Messages
- 855
- Office Version
- 365
- Platform
- Windows
I am trying to help a list user. The task was to create one pdf each of the workbooks in a folder. I thought I had it right. I did page setup as follows.
But the pdfs created show data in "over-then-down" format so 1/2 the pages only have the right side (a few columns) of what should be on one page widthwise. FYI there are what should be three to four pages to put into the pdf but I get the rightmost columns in pages four - six.
I hope that I explained this well.
So the question is, how do I set up the pdf so that the data is one page wide?
VBA Code:
With .PageSetup
.Orientation = xlPortrait
.PaperSize = xlPaperA4
.FitToPagesWide = 1
End With
But the pdfs created show data in "over-then-down" format so 1/2 the pages only have the right side (a few columns) of what should be on one page widthwise. FYI there are what should be three to four pages to put into the pdf but I get the rightmost columns in pages four - six.
I hope that I explained this well.
So the question is, how do I set up the pdf so that the data is one page wide?