Macros not in corel draw 2021

When you installed 2021, did you install and enable VSTA ( visual studio tools for applications )

See post 7 here - Macro for Corel Draw 2019

And the section on installing vsta in you coreldraw manual ( in case some things have changed )