LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 48
Default Show username on startup

Hi

I have tried to write some macro to show the windows username in c a
cell, testing on each startup.

Function:

Function usrname()
usrname = Environ("Username")
End Function

Then a sub:

Sub auto_open()

Call usrname

End Sub

In the cell i write =usrname()

The problem is that when others open the sheet it still shows my
username and not theirs... Anyone have any ideas of what I have done
wrong?


//Kasper
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
(username v1) JJernigan Excel Discussion (Misc queries) 0 June 12th 08 09:13 PM
username robzrob Excel Worksheet Functions 2 May 4th 08 05:59 PM
Show username in a cell bradasley Excel Discussion (Misc queries) 4 June 5th 06 03:34 PM
Show Username Param Excel Discussion (Misc queries) 1 March 11th 06 03:09 PM
NT Username ceemo Excel Discussion (Misc queries) 4 August 2nd 05 04:39 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"