print username in footer

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to know who prints confidential worksheets and leaves them laying
around.
 
Hi FloydT

Use this event in the Thisworkbook module

Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim wkSht As Worksheet
For Each wkSht In ThisWorkbook.Worksheets
wkSht.PageSetup.RightFooter = "Print by: " & Environ("Username") _
& " on " & Format(Now, "mm-dd-yy hh:mm:ss")
Next wkSht
End Sub
 
If I was printing confidential reports, I would make sure I disabled Macros
before opening the workbook.

But maybe Floyd's people are not aware of that feature.

Gord Dibben Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top