如何签署 XLA(Excel 加载项)?
可以通过代码做到这一点吗?
And is is possible to do that from code?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
可以通过代码做到这一点吗?
And is is possible to do that from code?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
也许有可能,但据我所知,任何预构建的 API 都无法做到这一点。如果您可以从代码中签署代码,它将允许自我修改保持签名状态。这将是一个安全问题。
现在,VBA 确实允许二进制读/写,您可以在应用程序上安装一个监视器,观察当您签署代码并复制它正在执行的操作时会发生什么。但我猜这将是非常重要的。
您当然可以使用 sendkeys 拼凑在一起......但不要这样做。
出于好奇,您想解决什么问题?
Possible probably, but not by any prebuilt API that I know of. If you could sign code from code it would allow self modifying to stay signed. That would be a bit of a security issue.
Now VBA does allow for binary read/writes you could slap a monitor on your application and watch what happens when you sign code and replicate what it is doing. But I'd guess that would be pretty non-trivial.
You could of course kludge together using sendkeys... But don't.
Out of curiosity, what problem are you trying to solve?