ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Button to print XLS file as PDF (https://www.excelbanter.com/excel-programming/443231-button-print-xls-file-pdf.html)

johan

Button to print XLS file as PDF
 
Hello,

Can somebody help me out.

Within a xls file I want to create a button with a macro which will
print the printarea as a acrobat pdf file with the filename as
registered in datafield A2.
If this is, for example "testtest" than after push the button the
macro should give the printpreview as pdf file with the name
testtest.pdf

I also like to have a macro which shows me the ;save as; box with file
name mentioned the same as above. The ;save as; box shows then
filename testtest.xls

Somebody knows the solution........ thanks.

regards,
Johan.







All times are GMT +1. The time now is 03:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com