简体   繁体   English

严格使用Excel打开.xlsm

[英]Open .xlsm strictly with Excel

I want my macro enabled .xlsm file, to be opened using Excel only. 我希望启用宏的.xlsm文件仅使用Excel打开。

Can I know & deny other applications trying to open it? 我可以知道并拒绝其他试图打开它的应用程序吗?

Private Sub Workbook_Open()
...
End Sub

You may be able to deny it on your own machine through your OS's setup; 通过操作系统的设置,您可以在自己的计算机上拒绝它。 however since it's the OS that's doing the "Opening" you have little to no control over someone else's machine. 但是,由于是操作系统正在执行“打开”操作,因此您几乎无法控制别人的机器。 Your best bet would be to password protect the workbook via: file>save as>computer>browse>tools>general options. 最好的选择是通过以下方式对工作簿进行密码保护:文件>另存为>计算机>浏览>工具>常规选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM