Problem with Custom Forms Macros

I recently inherited a client who is using many macros in their environment.  Some of these macros are used in place of the standard Order Entry and Shipment forms.  Everything works fine in their current environment which is Sage 300 2021.  Recently I installed Sage 300 2024.1 on a new server and most of their macros work okay except for several that run the standard forms though the macros.  When I try to run one of the problem macros I get the following error:

Could not load an object because it is not available on this machine.

When I hit okay it’s followed by this message:

Compile error:  Can’t find project or library.

It also shows me the problem line of code which reads as follows:

Dim WithEvents dsOESHIH As AccpacOE2200.ACCPACDSCentral

So it seems it can’t find the ACCPACDSCentral object.  Can someone help me determine what’s missing in this installation and how to resolve?

Thank you in advance for your assistance.