[英]How to restrict a user from editing an Excel workbook in a network shared folder when it is being edited (open) by another user?
Can it be done through VBA, since I have some VBA code running, maybe I can add into it, or it's just a simple setting in a menu that I didn't realize? 可以通过VBA完成此操作,因为我正在运行一些VBA代码,也许可以将其添加到其中,或者这只是我没有意识到的菜单中的简单设置? Pretty new to Excel, thanks in advance! Excel的新手,在此先感谢!
函数Application.UserName
将返回一个带有用户名的字符串,以便您可以在VBA代码上使用它,例如If Application.UserName = "Name Of The User" then
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.