:) Environ("Username")
으로 열면 모든 사용자가 이름을 쓸 수 있습니다. 다른 PC로 가서 확인하십시오. Environ ("사용자 이름")은 현재 Windows 사용자의 이름을 제공합니다.
편집 :
Sub getListUsingUsers()
Users = ActiveWorkbook.UserStatus
MsgBox "Total Users using the current WorkBook: " & UBound(Users)
End Sub
Edit2가 : : 공유 통합 문서에 대해 말하기 경우이 코드입니다
Sub GetUsers()
Dim users As Variant
Dim l_counter As Long
users = ActiveWorkbook.UserStatus
Debug.Print "Total Users using the current WorkBook: " & UBound(users)
For l_counter = 1 To UBound(users)
Debug.Print users(l_counter, 1)
Next l_counter
End Sub
내가 이미 시도했지만 작동하지 않습니다. 그래서 다른 컴퓨터에서이 파일을 연 다음 컴퓨터에서 열어 다른 컴퓨터의 이름이 아닌 내 이름을 얻습니다. – Yacino
체크 아웃 - http://stackoverflow.com/questions/34612730/how-can -i-get-list-of-users-using-specific-shared-workbook – Vityata
감사합니다. 이미이 도구를 사용해 보았습니다 만,이 파일은 공유 Excel 파일이 아니며, Even는 2 명 또는 3 명의 사용자가 있습니다. 이 함수는 1 명의 사용자를 얻습니다. – Yacino