Hello all,
I'm new here but I hope you can help me out.
I've code to export multiple sheets in a workbook to pdf using 'ExportAsFixedFormat Type:=xlTypePDF'
All sheets are set to landscape. The export works fine however most of the time the last sheet is orientated as portrait instead of landscape.
I've tried a lot but can't get it right.
Hope you can help.
Thanks Maarten.
PS: When I export the last sheet alone the export is fine and in landscape!
I'm new here but I hope you can help me out.
I've code to export multiple sheets in a workbook to pdf using 'ExportAsFixedFormat Type:=xlTypePDF'
All sheets are set to landscape. The export works fine however most of the time the last sheet is orientated as portrait instead of landscape.
I've tried a lot but can't get it right.
Hope you can help.
Thanks Maarten.
PS: When I export the last sheet alone the export is fine and in landscape!