Problems getting a custom ribbon to work (1 Viewer)

Catalina

Registered User.
Local time
Today, 04:14
Joined
Feb 9, 2005
Messages
462
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.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 19:14
Joined
May 7, 2009
Messages
19,243
on VBA window, add reference (Tools->Reference) to Microsoft Office XX.X Object Library.
 

Catalina

Registered User.
Local time
Today, 04:14
Joined
Feb 9, 2005
Messages
462
on VBA window, add reference (Tools->Reference) to Microsoft Office XX.X Object Library.
Yes, that did the trick.

Thank you Sir.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 19:14
Joined
May 7, 2009
Messages
19,243
.. XX.X being the Office version you have.
 

Users who are viewing this thread

Top Bottom