count the prints

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
we have an excel sheet, people take prints of the data we have in that sheet. we would like to count the number of prints taken for the sheet in a cell. first print would be 1, if one more print taken it will add into it and the counter would be increased.
 
Upvote 0
use a macro activated by a shape labellled click here to take a print, and each time a counter is increased by 1 and displayed in a cell of your choosing. But easy to bypass this eg open a read only copy and print from that...
 
Upvote 0
Use [Alt]+[F11] to bring up the VBA editor then double-click on the ThisWorkbook object. Paste the following:

Code:
Private Sub Workbook_BeforePrint(Cancel As Boolean)

With Sheets("Sheet1").Range("A1")
    .Value = .Value + 1
End With

End Sub

Change "Sheet1" and "A1" to match your sheet name and cell reference.

WBD
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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