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)
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.