简体   繁体   English

允许其他人安装 Excel (2011) 宏的最简单方法?

[英]Easiest way to allow others to install an Excel (2011) macro?

I wrote a macro from scratch but would like to have non-technical people install/run it at ease.我从头开始写了一个宏,但想让非技术人员轻松安装/运行它。 I'm unfortunately not onsite so I was hoping to defer the hassle to myself and offer them a one-(or few)-click solution.不幸的是,我不在现场,所以我希望将麻烦推迟到自己身上,并为他们提供一键(或几键)单击解决方案。 Any advice?有什么建议吗?

This Stack Overflow link seemed to be one of the better solutions, and this is still probably too complicated for my clients.这个 Stack Overflow 链接似乎是更好的解决方案之一,这对我的客户来说仍然可能太复杂了。

Well, for a one click solution, you are going to want to create an add-in and then an installer.好吧,对于一键式解决方案,您需要先创建一个加载项,然后再创建一个安装程序。 This guide covers this pretty well in depth:本指南深入介绍了这一点:

http://msdn.microsoft.com/en-us/library/ff937654.aspx#Createhttp://msdn.microsoft.com/en-us/library/ff937654.aspx#Create

If you don't want to do that, then the easiest way is to just copy/paste the macro (if it is not too complex) into each user's workbook or personal.xls if it needs to be used in multiple workbooks.如果您不想这样做,那么最简单的方法是将宏(如果它不太复杂)复制/粘贴到每个用户的工作簿或个人.xls 中(如果需要在多个工作簿中使用)。

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

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