Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, I know how to get the name of the current user logged onto
Windows, but I'd like to extract the time that the user logged onto to the windows session. This must be possible, but try as I might, I just cant find anything on the net. Can anyone help? Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try using:
Private Declare Function GetTickCount Lib "kernel32" () As Long myTime = GetTickCount in myTime you'll get the elapsed time since Windows started in milliseconds. I don't know whether it is when the machine started, or when the user logged on, can be different when more than one user is using the machine, you'd have to test that. grds, Carl macroapa wrote in news:e67c85ef-668e-48ce-9732- : Hi, I know how to get the name of the current user logged onto Windows, but I'd like to extract the time that the user logged onto to the windows session. This must be possible, but try as I might, I just cant find anything on the net. Can anyone help? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Getting Logged in User Name in formula... | Excel Worksheet Functions | |||
Excel running when user is not logged in to windows | Excel Programming | |||
Converting a "Logged out" time and "logged in" time to find out the elapsed time | Excel Programming | |||
Find Out Logged in User | Excel Programming | |||
Using the Windows API to extract the Windows User Name | Excel Programming |