Good afternoon,
I have modified an invoice template to make it my own and now I want to perfect it.
Following the podcasts my template now has an invoice number generator, saves invoice to separate file, posts to a register and then wipes out all of the data ready for the next one.
Two small problems:
1. I want to save to a PDF instead of an excel workbook. I have tried to change this to PDF but doesn't work for me.
Sub SaveWithNewName()
Dim NewFN As Variant
PostToRegister
' Copy Invoice to a new workbook
ActiveSheet.Copy
NewFN = "C:\Invoice\JHInv" & Range("F3").Value & ".pdf"
ActiveWorkbook.SaveAs NewFN, FileFormat:=xlOpenXMLWorkbook
ActiveWorkbook.Close
NextInvoice
End Sub
2. The Macro icons print when I "print" the invoice.
I would like to make it a button at the bottom of the template something like done or record and then it will save a specified area of the workbook so the button doesn't show up on the invoice.
Thank you
I have modified an invoice template to make it my own and now I want to perfect it.
Following the podcasts my template now has an invoice number generator, saves invoice to separate file, posts to a register and then wipes out all of the data ready for the next one.
Two small problems:
1. I want to save to a PDF instead of an excel workbook. I have tried to change this to PDF but doesn't work for me.
Sub SaveWithNewName()
Dim NewFN As Variant
PostToRegister
' Copy Invoice to a new workbook
ActiveSheet.Copy
NewFN = "C:\Invoice\JHInv" & Range("F3").Value & ".pdf"
ActiveWorkbook.SaveAs NewFN, FileFormat:=xlOpenXMLWorkbook
ActiveWorkbook.Close
NextInvoice
End Sub
2. The Macro icons print when I "print" the invoice.
I would like to make it a button at the bottom of the template something like done or record and then it will save a specified area of the workbook so the button doesn't show up on the invoice.
Thank you