Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Grant Robertson
 
Posts: n/a
Default how do I insert user name into a cell

I am trying to insert the user name from the Tools Options General tab into a
spreadsheet cell.
I have EXCEL 2003
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default how do I insert user name into a cell

You'd need a User Defined Function (UDF) to do that if you're interested in
implementing a short VBA program:

This website gives instructions for getting the Excel Username and the
Logged In Username:
http://www.dicks-blog.com/archives/2...ername-in-vba/

Does that help?

***********
Regards,
Ron


"Grant Robertson" wrote:

I am trying to insert the user name from the Tools Options General tab into a
spreadsheet cell.
I have EXCEL 2003

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default how do I insert user name into a cell

But, the easiest way would be:

Open a standard VBA module and past in this code:

'----Start of Code------
Option Explicit
Function NetworkUserName() As String
Dim response
NetworkUserName = Environ("Username")
End Function
'----End of Code------

Then...in any ceil in that workbook enter: =NetworkUserName()

Does that help?

***********
Regards,
Ron


"Ron Coderre" wrote:

You'd need a User Defined Function (UDF) to do that if you're interested in
implementing a short VBA program:

This website gives instructions for getting the Excel Username and the
Logged In Username:
http://www.dicks-blog.com/archives/2...ername-in-vba/

Does that help?

***********
Regards,
Ron


"Grant Robertson" wrote:

I am trying to insert the user name from the Tools Options General tab into a
spreadsheet cell.
I have EXCEL 2003

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Grant Robertson
 
Posts: n/a
Default how do I insert user name into a cell

Ron,
This gives me my network log in name.
I need my EXCEL user name.
I have tried ammending your code and the code from the link you supplied but
cannot make it work.

Cheers
Grant

"Ron Coderre" wrote:

But, the easiest way would be:

Open a standard VBA module and past in this code:

'----Start of Code------
Option Explicit
Function NetworkUserName() As String
Dim response
NetworkUserName = Environ("Username")
End Function
'----End of Code------

Then...in any ceil in that workbook enter: =NetworkUserName()

Does that help?

***********
Regards,
Ron


"Ron Coderre" wrote:

You'd need a User Defined Function (UDF) to do that if you're interested in
implementing a short VBA program:

This website gives instructions for getting the Excel Username and the
Logged In Username:
http://www.dicks-blog.com/archives/2...ername-in-vba/

Does that help?

***********
Regards,
Ron


"Grant Robertson" wrote:

I am trying to insert the user name from the Tools Options General tab into a
spreadsheet cell.
I have EXCEL 2003

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Grant Robertson
 
Posts: n/a
Default how do I insert user name into a cell

Ron,
I have it problem solved thanks

"Grant Robertson" wrote:

Ron,
This gives me my network log in name.
I need my EXCEL user name.
I have tried ammending your code and the code from the link you supplied but
cannot make it work.

Cheers
Grant

"Ron Coderre" wrote:

But, the easiest way would be:

Open a standard VBA module and past in this code:

'----Start of Code------
Option Explicit
Function NetworkUserName() As String
Dim response
NetworkUserName = Environ("Username")
End Function
'----End of Code------

Then...in any ceil in that workbook enter: =NetworkUserName()

Does that help?

***********
Regards,
Ron


"Ron Coderre" wrote:

You'd need a User Defined Function (UDF) to do that if you're interested in
implementing a short VBA program:

This website gives instructions for getting the Excel Username and the
Logged In Username:
http://www.dicks-blog.com/archives/2...ername-in-vba/

Does that help?

***********
Regards,
Ron


"Grant Robertson" wrote:

I am trying to insert the user name from the Tools Options General tab into a
spreadsheet cell.
I have EXCEL 2003

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
copying cell names Al Excel Discussion (Misc queries) 12 August 11th 05 03:01 PM
Insert a number of rows based on a value in a cell on active row iRocco Excel Discussion (Misc queries) 1 August 11th 05 06:18 AM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
how can i automatically insert cell values into a comment field? spot987654321 Excel Discussion (Misc queries) 1 June 3rd 05 11:10 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 05:47 AM.

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"