Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default How to identify operating system user in excel?

By default, I would like to populate a cell in a excel sheet with the
operating system user id, with the person who opened the excel file. Is
there a way to do this? I would appreciate any help. Thanks. Sarita.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default How to identify operating system user in excel?

Hi,
Check at the Environ Function
Environ("username") returns the name of the os user.
--
Regards,
Sébastien


"Sarita" wrote:

By default, I would like to populate a cell in a excel sheet with the
operating system user id, with the person who opened the excel file. Is
there a way to do this? I would appreciate any help. Thanks. Sarita.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default How to identify operating system user in excel?

Hi Sarita,

Possibly:

With Sheets(1).Range("A1")
Range("A1").Value = Application.OperatingSystem
Range("A2").Value = Environ("Username")
End With


---
Regards,
Norman



"Sarita" wrote in message
...
By default, I would like to populate a cell in a excel sheet with the
operating system user id, with the person who opened the excel file. Is
there a way to do this? I would appreciate any help. Thanks. Sarita.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default How to identify operating system user in excel?

It works. Thank you so much. -- Sarita.

"sebastienm" wrote:

Hi,
Check at the Environ Function
Environ("username") returns the name of the os user.
--
Regards,
Sébastien


"Sarita" wrote:

By default, I would like to populate a cell in a excel sheet with the
operating system user id, with the person who opened the excel file. Is
there a way to do this? I would appreciate any help. Thanks. Sarita.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default How to identify operating system user in excel?

It works. Thank you so much. -- Sarita.

"Norman Jones" wrote:

Hi Sarita,

Possibly:

With Sheets(1).Range("A1")
Range("A1").Value = Application.OperatingSystem
Range("A2").Value = Environ("Username")
End With


---
Regards,
Norman



"Sarita" wrote in message
...
By default, I would like to populate a cell in a excel sheet with the
operating system user id, with the person who opened the excel file. Is
there a way to do this? I would appreciate any help. Thanks. Sarita.




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
Using XP Operating System to Search for Numbers Values in Excel Files Tim Childs Excel Discussion (Misc queries) 8 November 14th 07 09:11 PM
operating system not configured to run excel gmoty Excel Discussion (Misc queries) 1 April 14th 06 06:33 AM
Find out Operating System Mohan[_2_] Excel Programming 5 January 16th 04 08:36 PM
Operating system Don Guillett[_4_] Excel Programming 0 September 10th 03 04:43 PM
Operating system Stephan Kassanke Excel Programming 0 September 10th 03 04:42 PM


All times are GMT +1. The time now is 10:38 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"