安装rubberduck后看不到add in?

Can not see the add in after installing rubberduck?

我是rubberduck的新手,已经安装了最新的2.0.11版本。安装管理员后,我转到 excel 并检查我的 com-addins,它现在在那里显示 rubberduck。我检查了我的 programdata 文件夹,是的,rubberduck 与所有文件等都在那里。它只是没有出现在我的 excel 插件中。帮忙?

OS: windows 7亲 Excel 2007 年 64 位

Disclaimer: I am one of the founders of the Rubberduck project

编辑 2020-06:Rubberduck 不再需要管理权限即可安装,并且在安装过程中会进行加载项注册。如果安装是为“所有用户”进行的,则需要为每个用户手动注册加载项 - 安装程序现在为此提供了一个开始菜单快捷方式,但这个答案仍然准确地描述了幕后发生的事情,以及如何手动使其工作。

</meta>


Rubberduck 是一个 VBE 插件,而不是 Excel 或 COM 插件;如果它已正确注册为 VBE 加载项,您可以在 VBE 的 加载项管理器 中的 加载项 菜单中找到它:

注意:避免使用 loading/unloading Rubberduck window - 存在无法播放的已知拆解问题(其中大部分已在下一版本 2.0.12 中修复)与 VBE 的加载项管理器配合得很好。

VBE 在 HKCU 配置单元下寻找可用的加载项,这是针对 当前用户 - 如果您不是 运行 的管理员用户安装程序,VBE 不知道有新的加载项,因为 HKCU 下没有这样说。

根据项目维基中的 installing instructions

Installing for non-admin users

The Rubberduck installer requires administrative privileges, notably to register the COM types that enable the unit testing feature. Because VBE add-ins need to be registered under the HKCU registry hive, the installer will create the Addins key for the admin user that is running the installer.

要为非管理员用户注册加载项,您需要运行以下 PowerShell 命令:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
New-Item -Path 'HKCU:\Software\Microsoft\VBA\VBE.0\AddIns64\Rubberduck.Extension' -Force
New-ItemProperty -Path 'HKCU:\Software\Microsoft\VBA\VBE.0\AddIns64\Rubberduck.Extension' -Name Description -PropertyType String -Value 'Rubberduck'
New-ItemProperty -Path 'HKCU:\Software\Microsoft\VBA\VBE.0\AddIns64\Rubberduck.Extension' -Name FriendlyName -PropertyType String -Value 'Rubberduck'
New-ItemProperty -Path 'HKCU:\Software\Microsoft\VBA\VBE.0\AddIns64\Rubberduck.Extension' -Name LoadBehavior -PropertyType DWord -Value 3

这将在 HKCU 下安全地创建所需的注册表项,VBE 正在其中查找其加载项:HKCU:\Software\Microsoft\VBA\VBE.0\AddIns64。请注意,32 位 VBA 主机将在 .0\AddIns 键下查找加载项。

或者,您可以在注册表编辑器中手动创建缺少的键:

一旦安装成功。

ALT + F11 - 在 excel 中打开开发者工具。它将显示 Rubberduck 菜单。