Hi Sir, I using this code to do my invoice
Sub SaveInvoiceAsPDFAndClear()
Dim NewFN As Variant
NewFN = "C:YY\Invoice" & Range(H3").Value & ".pdf"
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=NewFN, _
Quality:=xlQualityStandard, IncludeDocProperties:=True, _
IgnorePrintAreas:=False, OpenAfterPublish:=False
Range(H3").Value = Range(H3").Value + 1
Range(C13:F23").ClearContents
End Sub
However, I would like to using my customer name instead of invoice number. My customer name is in cell B7. How do I edit it??
Sub SaveInvoiceAsPDFAndClear()
Dim NewFN As Variant
NewFN = "C:YY\Invoice" & Range(H3").Value & ".pdf"
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=NewFN, _
Quality:=xlQualityStandard, IncludeDocProperties:=True, _
IgnorePrintAreas:=False, OpenAfterPublish:=False
Range(H3").Value = Range(H3").Value + 1
Range(C13:F23").ClearContents
End Sub
However, I would like to using my customer name instead of invoice number. My customer name is in cell B7. How do I edit it??