Can not see the add in after installing rubberduck?

余生颓废 提交于 2019-12-30 09:53:10

问题


I am new to rubberduck and have installed the latest version 2.0.11. After admin installed, I go to excel and check my com-addins and it does now show rubberduck there. I've check my programdata folder and yes, rubberduck is there with all files ect. It is just not showing up on my add in for excel. Help?

OS: windows 7 pro Excel 2007 64bit


回答1:


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

Rubberduck is a VBE add-in, not an Excel or COM add-in; if it's properly registered as a VBE add-in you'll find it in the VBE's Add-In Manager, from the Add-Ins menu:

note: avoid loading/unloading Rubberduck from that window - there are known teardown issues (most of which are fixed in next release 2.0.12) that don't play well with the VBE's add-in manager.

The VBE looks for available add-ins under the HKCU hive, which is for the current user - if you're not the admin user that ran the installer, the VBE doesn't know there's a new add-in because there's nothing under HKCU that says so.

Per the installing instructions in the project's wiki:

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.

To register the add-in for a non-admin user, you need to run the following PowerShell commands:

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

This will safely create the required registry keys under HKCU, where the VBE is looking for its add-ins: HKCU:\Software\Microsoft\VBA\VBE\6.0\AddIns64. Note that 32-bit VBA hosts will be looking for add-ins under the \6.0\AddIns key.

Alternatively, you can create the missing keys manually in the registry editor:




回答2:


Once successfully installed.

ALT + F11 - on opening developer tool in excel. It will show the Rubberduck menu.



来源:https://stackoverflow.com/questions/42538026/can-not-see-the-add-in-after-installing-rubberduck

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!