Hi Alf, thanks mate it looks good but a couple of things:
- when it prompts to enter the file name, if you click "Cancel" it actually doesn't cancel the process and it goes to the "choose folder" dialog box. Is it possible to cancel/stop the macro if the user chooses "cancel"? Perhaps with a message "Action cancelled, PDF file not created"?
- I'm getting the invalid error "Run-time error 5: invalid procedure call or argument" and the debug is highlighting in yellow the lines below. I have Excel 2007 and when I click "Save As" and "other formats", I cannot see the PDF extension option there. Maybe that's why I have this error? Because my Excel cannot generate PDF files? If that's the case, if there is an error when running the macro and the user cannot generate the PDF, can the macro stop and send a message to the user such as "PDF not generated, your Excel might not be able to generate a PDF file", instead of generating a macro error?
Cheers
Bookmarks