How to access a VSTA Macro

I just installed CorelDraw 18 and I noticed we now have VSTA Macros.  The default one looks like this:

namespace VSTAGlobal
{
	public partial class Main
	{
		private void Startup()
		{
		}
 
		[CgsAddInMacro]
		public void Macro1()
		{
			MessageBox.Show("Macro1 - " + app.Name);
		}
	}
}

I would like to attach Macro1 to a button in the Corel workspace. To do that, I went to Tools> Options > Customization > Commands and chose Macros from the Drop Down menu.
I thought this would let me choose Macro1 as it comes with CorelDraw 18 but it does not appear. How do I get this Macro to appear?
Parents
No Data
Reply
  • Former Member
    Former Member over 7 years ago
    You can create VSTA macro under same VBA docker, "Macro Maneger", however in Corel X8 you need Visual Studio 2013, or 2015 installed in your machine, for Corel X7 you need Visual Studio 2012, community edition is free.
Children