macro to make backup from printed sheet

krabistaja

New Member
Joined
Jun 18, 2004
Messages
33
Hi

By pressing "print" i want macro to move printed sheet to new excel dokument (paste values) and save it in C:\Documents\ with name currentdate.xls

thanks
:oops:
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
You could use "Print to file" for that. From the XL2K help file:

Print a workbook to a file
If you print a workbook to a file so that you can later print the file on a different type of printer than the one used to create the document, the page breaks and font spacing may change.

On the File menu, click Print.

In the Printer box, click the printer on which you want to print the file.

Select the Print to file check box, and then click OK.

In the File name box in the Print to file dialog box, type a name for the file you want to print.

Hope that helps!
 
Upvote 0
Actually I look for solution that every "dumb user" can use.

For example bookkeeper could only press 1 button for printing and same time saving this printed document in here PC without special effort.

Is it possible to make macro which starts up when pressing "print",
1. 1 sheet comes out from printer,
2. move sheet to another document with values and saving with current date name.xls?

:rolleyes:
 
Upvote 0
I tried to record macro to solve my problem. To not to print out many stuff I added Acrobat distiller but I need it to be default printer of every user.


ActivePrinter:= _
"Acrobat Distiller aadressil Ne01:"

how should i change it to default printer ?
 
Upvote 0

Forum statistics

Threads
1,203,101
Messages
6,053,532
Members
444,670
Latest member
laurenmjones1111

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top