Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
The function =CELL("filename",A1) returns a file name and sheet name in a
cell. How can I obtain the User Name? |
#2
![]() |
|||
|
|||
![]() You can write some VBA to do it. Sub Return_UserName() Sheets("sheet1").Range("A2").Value = Application.UserName End Sub -- Excel_Geek ------------------------------------------------------------------------ Excel_Geek's Profile: http://www.excelforum.com/member.php...o&userid=26423 View this thread: http://www.excelforum.com/showthread...hreadid=398347 |
#3
![]() |
|||
|
|||
![]() And to return just the filename (if you like) you can use this formula: =MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]",CELL("filename",A1))-FIND("[",CELL("filename",A1))-1) -- Excel_Geek ------------------------------------------------------------------------ Excel_Geek's Profile: http://www.excelforum.com/member.php...o&userid=26423 View this thread: http://www.excelforum.com/showthread...hreadid=398347 |
#4
![]() |
|||
|
|||
![]()
Very nice. This is going into my Macro Toolkit.
"Excel_Geek" wrote: You can write some VBA to do it. Sub Return_UserName() Sheets("sheet1").Range("A2").Value = Application.UserName End Sub -- Excel_Geek ------------------------------------------------------------------------ Excel_Geek's Profile: http://www.excelforum.com/member.php...o&userid=26423 View this thread: http://www.excelforum.com/showthread...hreadid=398347 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cannot insert a row in Excel spreadsheet | Excel Worksheet Functions | |||
Excel should have the same Insert Symbol feature as Word. | Excel Discussion (Misc queries) | |||
Why can't I insert a Combo Box in Excel? | Excel Discussion (Misc queries) | |||
Excel document properties insert into a cell | Excel Discussion (Misc queries) | |||
Can I insert digital signatures into an Excel cell? | Excel Discussion (Misc queries) |