Add record to table when report is printed

DITEL

New Member
Joined
Jul 22, 2003
Messages
2
Simple question here: :rolleyes:

I want to add a record to a table "reports" when a report is printed. To have a sort of audit trail with the date and time of printing.

How do I get about ?
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Use a form - add a button to the form that begins the printing function but add code that adds to the table following the print request. Not sure if there's a way to capture the data if the user utilizes the menu option to print.

One possibility is to remove that menu item so they can no longer choose it.

Mike
 
Upvote 0
Nice - I never paid attention to the onprint property (didn't notice it existed). While in my opinion some bulletins have been "very involved", this is a very short and very easy thing to do and it does precisely what I wasn't sure could be done - no matter how it's printed, it will get logged.

This one is getting saved for later.

Mike
 
Upvote 0

Forum statistics

Threads
1,221,596
Messages
6,160,716
Members
451,665
Latest member
PierreF

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