ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Cell should display, login name. (https://www.excelbanter.com/excel-programming/410581-cell-should-display-login-name.html)

Ranjit kurian

Cell should display, login name.
 
I have a excel sheet which is used by five to six people,i need my cell to
view the person name whoever open the excel file, whether its in readonly or
not, it should reflect the person name....

Only the login person name should display not everybodys


joel

Cell should display, login name.
 
Operator = Environ("USERNAME")

"Ranjit kurian" wrote:

I have a excel sheet which is used by five to six people,i need my cell to
view the person name whoever open the excel file, whether its in readonly or
not, it should reflect the person name....

Only the login person name should display not everybodys


Sam Wilson

Cell should display, login name.
 
As far as I know the nearest you can get to Login Name can be give by:

Range("c6").Value = Environ("username")
Range("c7").Value = Environ("ComputerName")

Put these in the worksheet open event.

Sam

"Ranjit kurian" wrote:

I have a excel sheet which is used by five to six people,i need my cell to
view the person name whoever open the excel file, whether its in readonly or
not, it should reflect the person name....

Only the login person name should display not everybodys



All times are GMT +1. The time now is 03:30 AM.

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