A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Setting up and Configuration
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Excel and Windows Login ID problem...



 
 
Thread Tools Display Modes
  #1  
Old January 10th, 2007, 07:33 PM posted to microsoft.public.excel.setup
Tad Anglin
external usenet poster
 
Posts: 2
Default Excel and Windows Login ID problem...

I need to know if there is a function that will allow an excel spreadsheet
cell to automatically populate itself with the login id of the person using
the computer?

Example of how I would like it to work....
1. A person opens a spreadsheet
2. And bam!! Cell A1 shows their windows login id

  #2  
Old January 10th, 2007, 08:13 PM posted to microsoft.public.excel.setup
Nick Hodge
external usenet poster
 
Posts: 614
Default Excel and Windows Login ID problem...

Tad

Try this in the ThisWorkbook module (To implement right click the lower of
the two Excel icons, top left of the window and select view code, paste here
and close out) it will place the Username in cell A1 on sheet1...Bam!

Private Sub Workbook_Open()
Worksheets("Sheet1").Range("A1").Value = Environ("Username")
End Sub

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Tad Anglin" wrote in message
news
I need to know if there is a function that will allow an excel spreadsheet
cell to automatically populate itself with the login id of the person
using
the computer?

Example of how I would like it to work....
1. A person opens a spreadsheet
2. And bam!! Cell A1 shows their windows login id


  #3  
Old January 11th, 2007, 02:18 PM posted to microsoft.public.excel.setup
Tad Anglin
external usenet poster
 
Posts: 2
Default Excel and Windows Login ID problem...

Nick....

Thanks for taking some time out of your day...that worked beautifully.

BAM!



"Nick Hodge" wrote:

Tad

Try this in the ThisWorkbook module (To implement right click the lower of
the two Excel icons, top left of the window and select view code, paste here
and close out) it will place the Username in cell A1 on sheet1...Bam!

Private Sub Workbook_Open()
Worksheets("Sheet1").Range("A1").Value = Environ("Username")
End Sub

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Tad Anglin" wrote in message
news
I need to know if there is a function that will allow an excel spreadsheet
cell to automatically populate itself with the login id of the person
using
the computer?

Example of how I would like it to work....
1. A person opens a spreadsheet
2. And bam!! Cell A1 shows their windows login id


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:00 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.