![]() |
Show Username
Hi,
How to show current username appear at specific cell when the user open the file. TQ |
Show Username
'-----------------------------------------------------------------
Private Sub Workbook_Open() '----------------------------------------------------------------- With Thisworkbook.Worksheets("Sheet1") .Range("A1").Value = Environ("UserName") End With End Sub 'This is workbook event code. 'To input this code, right click on the Excel icon on the worksheet '(or next to the File menu if you maximise your workbooks), 'select View Code from the menu, and paste the code -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Param" wrote in message ... Hi, How to show current username appear at specific cell when the user open the file. TQ |
All times are GMT +1. The time now is 04:24 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com