ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How can I display a user name is Excel? (https://www.excelbanter.com/excel-discussion-misc-queries/227537-how-can-i-display-user-name-excel.html)

Phil_M

How can I display a user name is Excel?
 
Rather than having everyone enter their name in a spreadsheet before printing
their reports I was wondering if there is a function that would display the
user's user or display name in a cell.

Thanks,
Phil

Gary Keramidas[_2_]

How can I display a user name is Excel?
 
not sure what you want to do, but this line of code would enter the username
that was used to log in to windows into cell A1

range("A1").Value = environ("username")
if you need more info, post back.
--


Gary

"Phil_M" wrote in message
...
Rather than having everyone enter their name in a spreadsheet before
printing
their reports I was wondering if there is a function that would display
the
user's user or display name in a cell.

Thanks,
Phil




All times are GMT +1. The time now is 08:19 PM.

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