Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.setup
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   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 1,173
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
...
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   Report Post  
Posted to microsoft.public.excel.setup
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
...
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


Reply
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
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
Problem exporting to excel with Windows XP bhigdon Excel Discussion (Misc queries) 1 August 13th 05 12:06 PM
Excel 2003 Slowness problem in Windows XP Elton Seng Yan Thung Excel Discussion (Misc queries) 2 May 18th 05 04:55 AM
open separate exterior excel windows Jason Dove Excel Discussion (Misc queries) 18 May 3rd 05 05:22 PM
Problem opening Excel files from Windows Explorer aj Excel Discussion (Misc queries) 2 January 30th 05 06:37 PM


All times are GMT +1. The time now is 03:12 PM.

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

About Us

"It's about Microsoft Excel"