|
-
Nov 25th, 2005, 05:31 AM
#1
Thread Starter
PowerPoster
show ms box if the xls file is opened...
i have a .xls file into a dir server, with all free permission on this dir, inested the tipical ms message "file is alreday opend from..." when a user open a xls file if other user have opened the same, is possible:
to show a mshbox:
Attention this file is in use from & "name of user have opoened the file for first" click on msg box close the .xls file...
i use this function to know wich user have opened the .xls file:
Sub USER_NAME()
Dim wshNet
ThisWorkbook.Activate
Sheets("RATE").Select
Set wshNet = CreateObject("WScript.Network")
wshGetUserName = wshNet.UserName
Set wshNet = Nothing
Range("A1") = ""
Range("A1") = UCase(wshGetUserName)
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|