可以使用 IDTExtensibility2 为 VBA IDE 创建 64 位插件吗? [英] Possible to Create 64-bit Add-in for VBA IDE using IDTExtensibility2?
问题描述
是否可以创建将加载到 Office 2010 64 位的 Visual Basic 编辑器中的 COM 加载项?我可以让我的加载项加载到 Office 2010 32 位,但它只是被 64 位版本忽略.
Is it possible to create a COM add-in that will load into the Visual Basic Editor of Office 2010 64-bit? I can get my add-in to load into Office 2010 32-bit, but it just gets ignored by the 64 bit version.
在我的研究中,我发现许多流行的 VBE 加载项不适用于 64 位 Office(例如代码清理器、MZ 工具、VBE 工具等).其中一些是因为它们是在 32 位 VB6 中构建的,但是有人知道任何可以在 64 位 Office 中运行的 VBA IDE 插件吗?
In my research, I am finding that a lot of the popular VBE add-ins don't work for 64 bit Office (e.g. Code Cleaner, MZ Tools, VBE tools, etc). A number of these will be because they're built in 32bit VB6, but does anyone know of any VBA IDE add-in that works in 64 bit Office?
推荐答案
可以将加载项加载到 VBA IDE 中.诀窍是将注册表项放在 HKEY_CURRENT_USER\Software\Microsoft\VBA\VBE\6.0\Addins64\MyVBAAddIn.Connect 下,而不是 HKEY_CURRENT_USER\Software\Microsoft\VBA\VBE\6.0\Addins\MyVBAAddIn.Connect
It is possible to load an add-in into the VBA IDE. The trick is to put the registry entries under HKEY_CURRENT_USER\Software\Microsoft\VBA\VBE\6.0\Addins64\MyVBAAddIn.Connect, not HKEY_CURRENT_USER\Software\Microsoft\VBA\VBE\6.0\Addins\MyVBAAddIn.Connect
Carlos J. Quintero 在 http://www.mztools 上有一套完整的说明.com/articles/2012/MZ2012013.aspx
Carlos J. Quintero has a thorough set of instructions at http://www.mztools.com/articles/2012/MZ2012013.aspx
这篇关于可以使用 IDTExtensibility2 为 VBA IDE 创建 64 位插件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!