简体   繁体   中英

Excel VBA add right-click button to addin

I am trying to make an Addin with Pivot right-click button. All the macros are working in the addin perfectly on every workbook that I open.

The problem is that the right-click buttons don't appear in other workbooks - only in the one with the addin.

Screenshot 在此处输入图片说明

As you can see I have written the code in ThisWorkbook module, and the Subs are Private. - I guess that somewhere here is the problem.

Would be very grateful if somebody can help.

Ah, I found the problem.

Obviously, the first part of the code was preventing the buttons to appear in other workbooks.

Other than that, Temporary:=True. it should be False.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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