I have created an invoice from a SQL data source and I plan to have it emailed as a PDF to the customer.
The bit I am stuck on is printing the PDF to a predefined location with a file name generated from the sheet.
Using Excel 2000 and attempting to do the job with CutePDF.
If I record the macro I get
So this does not see anything that happens with in the CutePDF controls.
Any ideas on the best way of solving this one?
The bit I am stuck on is printing the PDF to a predefined location with a file name generated from the sheet.
Using Excel 2000 and attempting to do the job with CutePDF.
If I record the macro I get
Code:
Sheets("invoice").Select
Application.ActivePrinter = "CutePDF Writer on CPW2:"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
"CutePDF Writer on CPW2:", Collate:=True
So this does not see anything that happens with in the CutePDF controls.
Any ideas on the best way of solving this one?
Last edited: