Looks like you might be missing some references.
Please take a look at integrating technologies for SAS 9.4 Platform
SAS 9.4 Integration Technologies: Windows Client Developer's Guide
Developing Apps and communicating to SAS Viya
If you look at the link I provided, I have already checked the two references that they suggest.
Plus, knowing VBA, if I was missing a reference I would get a 'user-defined type' error, not "class not registered".
Hmmm not entirely sure why the VB code isn't working.
You might want to try the Microsoft Community site for VB code
Visual Studio Community 2019 - Free IDE and Developer Tools (microsoft.com)
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.