I have the same problem and the code is similar to this above. Customized button in right-click menu is not visible in Excel 365 but I checked the code in Excel 2021 and it works. So maybe some option need to be turned on in Excel365 but I don't know which or maybe latest update of Excel365 broke something.