I have a sheet with data that is generated with some other VBA code. It uses columns A-J, and number of rows is varying. I need to save the sheet as a PDF, landscape and fit to width. Any ideas how to do that?
I have a sheet with data that is generated with some other VBA code. It uses columns A-J, and number of rows is varying. I need to save the sheet as a PDF, landscape and fit to width. Any ideas how to do that?
Before saving as a PDF file, go to Page Setup and set the orientation to landscape.
Artik
Please Login or Register to view this content.
I forgot about your "fit to width" request. Change references as required.
Please Login or Register to view this content.
I use the following code:
Thanks for the replies!Please Login or Register to view this content.
If that is what you need and it works for you, good to know and thanks for letting us know.
You should get used to setting a PrintRange though.
Good luck.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks