ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Open by (https://www.excelbanter.com/excel-discussion-misc-queries/199228-open.html)

pgarcia

Open by
 
Is there a way to show who opened the file in the header section or just show
who open the file?

Gary''s Student

Open by
 
Put this macro in the workbook code area:

Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.CenterHeader = Environ("username")
End Sub

--
Gary''s Student - gsnu200800


"pgarcia" wrote:

Is there a way to show who opened the file in the header section or just show
who open the file?


pgarcia

Open by
 
You the man!

Question, how does it know where to get this info from?

"Gary''s Student" wrote:

Put this macro in the workbook code area:

Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.CenterHeader = Environ("username")
End Sub

--
Gary''s Student - gsnu200800


"pgarcia" wrote:

Is there a way to show who opened the file in the header section or just show
who open the file?



All times are GMT +1. The time now is 01:33 PM.

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