Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2008

Tip: Looking for answers? Try searching our database.

Find the login time of the current Windows user

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ivyleaf - 27 Mar 2008 05:05 GMT
Hi,

My goal is to be able to insert the login time of the current Windows
user into a cell in Excel. I have searched the net extensively, but
although there are plenty of ways to find the user NAME, i can't find
any way to find the time that they logged in. Windows obviously
records this info (it is displayed in the Windows Security box if you
hit Ctrl+Alt+Del, as well as in event log etc etc).

I am guessing I will need API calls which is fine, but I have no idea
where to start.

Any help appreciated,
Ivan.
ryguy7272 - 28 Mar 2008 16:30 GMT
Does this help?

http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public
.excel.programming&tid=93b57675-c289-4560-8d0b-c9d23b73d9c8&cat=en-us-excel&lang
=en&cr=US&sloc=en-us&m=1&p=1


Regards,
Ryan---
Signature

RyGuy

> Hi,
>
[quoted text clipped - 10 lines]
> Any help appreciated,
> Ivan.
Ivyleaf - 29 Mar 2008 07:11 GMT
Hi Ryan,

Thanks for the link, but unfortunately no. What I am trying to
establish through code is the time the user logged in to Windows, not
just Excel or the workbook. There must be some API call somewhere I'm
sure to determine this, but I'm stuffed if I can find how or what, and
although I am proficient in VBA, I haven't dealt much with API's to
know where to start tinkering myself.

Thanks anyway,
Ivan.

On Mar 29, 2:30 am, ryguy7272 <ryguy7...@discussions.microsoft.com>
wrote:
> Does this help?
>
[quoted text clipped - 21 lines]
>
> - Show quoted text -
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.