Hello Everyone!
How can I call a VSTA function from VBA code.
I try to find in doc and google but cannot found.
Thank you so much!
Can you create a COM wrapper in C# that loads its methods from the VSTA DLL using reflection and use it in VBA as I did in this example:
https://community.coreldraw.com/sdk/f/code-snippets-feedback/66325/how-can-a-form-with-command-buttons-created-with-vsta-run-macros-made-with-vba
Or you can use the method from this link on line 526. It's in C#, so you'll need to convert it to VBA
github.com/.../CorelAutomation.cs
I will try it. Thank you so much!