A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Jeovany,
I am running into an issue when tryin to save the document as a pdf. I have been looking to see if I can find a fix for it, but I am having trouble. The invoice that you created will save as 1 page in a PDF, but the invoice that I created will print on 1 page, but when saving it as a pdf it will not save as 1 page. Below are some screenshots that show the issue.
Here is the code I am using.
Dim saveLocation As String
Dealer = Range("D5")
Invoice = Range("D2")
saveLocation = "\TIMS-COMPUTER\Users\furnd\POS System\Invoices" & Dealer & "" & Invoice & ".pdf"
'Save Active Sheet(s) as PDF
ActiveSheet.ExportAsFixedFormat xlTypePDF, saveLocation
Here are my margins.
Here is the screen in excel that will print as 1 page.
Here is how it looks when saving to PDF.