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)
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.