简体   繁体   English

当其他用户正在编辑(打开)Excel工作簿时,如何限制用户编辑网络共享文件夹中的Excel工作簿?

[英]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.

相关问题 检查共享工作簿是否已被其他用户打开 - Check if a shared workbook is already open by another user 确保用户在开始编辑内容时打开工作簿进行编辑 - Ensuring that user has workbook open for editing when they start editing things 如何使用 VBA 中的输入框从已打开的 Excel 工作簿中获取用户的范围并将其粘贴到另一个标准化工作簿中? - How do I use the Inputbox in VBA to obtain a range from a user from a already open Excel workbook and paste it into another, standardized workbook? 检查 Sharepoint 上的共享 Excel 文件是否被锁定以供其他用户编辑 - Check if a shared Excel file on Sharepoint is locked for editing by another user 如何使 ssis excel 数据源任务即使在文件打开并被其他用户使用时也不会失败? - How to make ssis excel data source task to not fail even when the file is open and being used by another user? Excel vba从另一个工作簿执行用户定义的功能,即使没有被调用 - Excel vba performing user defined function from another workbook even though it is not being called 提示用户打开另一个工作簿 - Prompt User to open another workbook 使用VBA从网络打开工作簿时Excel冻结 - Excel freezes when using VBA to open a workbook from network 在 Excel 中,如何调用存储在另一个工作簿中的用户定义的 function 而不必打开另一个工作簿? - In Excel, how do I a call a user-defined function stored in another workbook without having to have the other workbook open? 让用户从excel中打开的工作簿中选择工作表 - have a user select a sheet from open workbook in excel
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM