tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,210
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hi Everyone,
ok a very confusing problem here.
I have a Macro that save a tab as a PDF, (See macro below)
The problem I have is that it doesn't save the PDF in the same page sizes as I see in print preview
I'm trying to get the document to save as a PDF using the printer settings I have but its not doing it,
I want it to save as "Letter" size but it seams to be saving the PDF as A4 which is the UK standard size.
Any ideas how I can get it to Save as letter size or save as if it was printing but to PDF?
The macro I'm using is this:
any help would be great
thanks
Tony
ok a very confusing problem here.
I have a Macro that save a tab as a PDF, (See macro below)
The problem I have is that it doesn't save the PDF in the same page sizes as I see in print preview
I'm trying to get the document to save as a PDF using the printer settings I have but its not doing it,
I want it to save as "Letter" size but it seams to be saving the PDF as A4 which is the UK standard size.
Any ideas how I can get it to Save as letter size or save as if it was printing but to PDF?
The macro I'm using is this:
Code:
Sub ExportAsPDF3()
ActiveSheet.Unprotect
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=ActiveWorkbook.Path & "\" & ActiveSheet.Range("L1").Value & Format(Now, "MM-DD-YYYY") & ".pdf", Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True
ActiveSheet.Protect
Range("Am11").Select
End Sub
any help would be great
thanks
Tony