Problems getting a custom ribbon to work

Catalina

Registered User.
Local time
Yesterday, 23:08
Joined
Feb 9, 2005
Messages
471
Over the past few years I made several databases using the same borrowed code in a module,
and it always worked fine.

Now, using the same module again in new database I get a compile error.

Code:
Public gobjRibbon As IRibbonUI
Error: user-defined type not defined.

I did my research and can not figure out why it does that. A reference problem maybe?

Using Office 365 Version 2312 Build 16.0.17126.20126) 32-bit

Help will be greatly appreciated.
 
on VBA window, add reference (Tools->Reference) to Microsoft Office XX.X Object Library.
 
.. XX.X being the Office version you have.
 

Users who are viewing this thread

Back
Top Bottom