Hello,
I have been fiddling with this script for hours:
but I get syntax errors!
Can anyone please help?
Thanks,
iR
I have been fiddling with this script for hours:
Code:
Sub MakeInvoice_PDF() ' Make_PDF Macro from Invoice data in specific folder "\Invoicing\PDF Files\"
With ActiveSheet.PageSetup
.Orientation = xlPortrait
.PrintArea = "$A$1:$G$56"
End With
ActiveSheet.ExportAsFixedFormat, _
Type:=xlTypePDF, _
Filename:=ActiveWorkbook.Path & "\Invoicing\PDF Files\" & "Invoice" & "_" & Range("A8").Value & "_" & Range("A16").Value & "#" & Range("B13").Value & Range("C13").Value & "_" & Range("A18").Value, & ".pdf" _
Quality:=xlQualityStandard, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False, _
OpenAfterPublish:=True
End Sub
but I get syntax errors!
Can anyone please help?
Thanks,
iR