Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default What is the formula to capture username from system into excel she

Hello,

im working on excel sheet which use by multiple user. I want a perticular
cell in sheet to capture the username whenever they open the sheet. i've
questioned this before and i was give the formula below. I tried copy paste
the formula into vb section of excel sheet but doesnt seem to work. In the
formula there's no cell reference. So where the system will capture the
username into xecel sheet?

Function UserNameWindows() As String
UserName = Environ("USERNAME")
End Function

Please help..
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default What is the formula to capture username from system into excel she

That is not a formula, that is a UDF. Add tat to a standarad VBA code
module, and in the worksheet in some cell add

=UserNameWindows()

--
__________________________________
HTH

Bob

"Dave VB logic for excel"
wrote in message ...
Hello,

im working on excel sheet which use by multiple user. I want a perticular
cell in sheet to capture the username whenever they open the sheet. i've
questioned this before and i was give the formula below. I tried copy
paste
the formula into vb section of excel sheet but doesnt seem to work. In the
formula there's no cell reference. So where the system will capture the
username into xecel sheet?

Function UserNameWindows() As String
UserName = Environ("USERNAME")
End Function

Please help..



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 266
Default What is the formula to capture username from system into excel

Dave, Bob,

I've been searching for this information - the "ENVIRON" statement that
you show below. I had an Access problem and now you helped me solve it - so
thank you. BTW the line should be UserNameWindows = Environ("USERNAME")



"Bob Phillips" wrote:

That is not a formula, that is a UDF. Add tat to a standarad VBA code
module, and in the worksheet in some cell add

=UserNameWindows()

--
__________________________________
HTH

Bob

"Dave VB logic for excel"
wrote in message ...
Hello,

im working on excel sheet which use by multiple user. I want a perticular
cell in sheet to capture the username whenever they open the sheet. i've
questioned this before and i was give the formula below. I tried copy
paste
the formula into vb section of excel sheet but doesnt seem to work. In the
formula there's no cell reference. So where the system will capture the
username into xecel sheet?

Function UserNameWindows() As String
UserName = Environ("USERNAME")
End Function

Please help..




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default What is the formula to capture username from system into excel she

Sub Username()
Dim user As String
user = Application.Username
'MsgBox user
ActiveCell.Value = user
End Sub


On Monday, March 09, 2009 5:24 PM DaveVBlogicforexce wrote:


Hello,

im working on excel sheet which use by multiple user. I want a perticular
cell in sheet to capture the username whenever they open the sheet. i've
questioned this before and i was give the formula below. I tried copy paste
the formula into vb section of excel sheet but doesnt seem to work. In the
formula there's no cell reference. So where the system will capture the
username into xecel sheet?

Function UserNameWindows() As String
UserName = Environ("USERNAME")
End Function

Please help..



On Monday, March 09, 2009 5:30 PM Bob Phillips wrote:


That is not a formula, that is a UDF. Add tat to a standarad VBA code
module, and in the worksheet in some cell add

=UserNameWindows()

--
__________________________________
HTH

Bob



On Tuesday, March 10, 2009 8:02 AM dhstei wrote:


Dave, Bob,

I've been searching for this information - the "ENVIRON" statement that
you show below. I had an Access problem and now you helped me solve it - so
thank you. BTW the line should be UserNameWindows = Environ("USERNAME")



"Bob Phillips" wrote:



Submitted via EggHeadCafe
SharePoint Get Attachment with Attachment Icon Using Javascript
http://www.eggheadcafe.com/tutorials...avascript.aspx

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default What is the formula to capture username from system into excel she

Sub Username()
Dim user As String
user = Application.Username
'MsgBox user
ActiveCell.Value = user
End Sub


On Monday, March 09, 2009 5:24 PM DaveVBlogicforexce wrote:


Hello,

im working on excel sheet which use by multiple user. I want a perticular
cell in sheet to capture the username whenever they open the sheet. i've
questioned this before and i was give the formula below. I tried copy paste
the formula into vb section of excel sheet but doesnt seem to work. In the
formula there's no cell reference. So where the system will capture the
username into xecel sheet?

Function UserNameWindows() As String
UserName = Environ("USERNAME")
End Function

Please help..



On Monday, March 09, 2009 5:30 PM Bob Phillips wrote:


That is not a formula, that is a UDF. Add tat to a standarad VBA code
module, and in the worksheet in some cell add

=UserNameWindows()

--
__________________________________
HTH

Bob



On Tuesday, March 10, 2009 8:02 AM dhstei wrote:


Dave, Bob,

I've been searching for this information - the "ENVIRON" statement that
you show below. I had an Access problem and now you helped me solve it - so
thank you. BTW the line should be UserNameWindows = Environ("USERNAME")



"Bob Phillips" wrote:



On Tuesday, March 01, 2011 7:39 AM vinay tukkapuram wrote:


Sub Username()

Dim user As String

user = Application.Username

'MsgBox user

ActiveCell.Value = user

End Sub



Submitted via EggHeadCafe
Statistics, Probability, Lotteries and Dumb Programmers
http://www.eggheadcafe.com/tutorials...ogrammers.aspx

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
What is the function for system to capture the username Dave VB logic for excel Excel Discussion (Misc queries) 4 March 7th 09 07:33 AM
What is the fucntion or formula to capture username into excel she Dave VB logic for excel Excel Discussion (Misc queries) 1 March 5th 09 11:34 PM
How do I open an Excel file on XP system, saved on a Vista system JLS7 Excel Discussion (Misc queries) 3 December 2nd 08 04:21 AM
Excel screen capture to capture cells and row and column headings jayray Excel Discussion (Misc queries) 5 November 2nd 07 11:01 PM
excel causing system to be in low system resource inenewbl Excel Discussion (Misc queries) 0 April 5th 05 04:11 PM


All times are GMT +1. The time now is 09:03 AM.

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"