ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Network detects if Windows Username is online (https://www.excelbanter.com/excel-programming/303709-network-detects-if-windows-username-online.html)

Todd huttenstine

Network detects if Windows Username is online
 
hey guys

The below code will return the windows username of the
current user.

Dim UName As String * 255
Dim NN
Dim L As Long: L = 255
Dim Res As Long
Res = GetUserName(UName, L)
UName = Left$(UName, L - 1)
NN = Trim(UName)
MsgBox NN

If you know the username of a person currently signed on
the network, how can you message that user over a network
using the the windows login username?


Thank you
todd Huttnestine


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com