Run two macros in sequence

Started by victoroko, May 28, 2015, 12:50:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

victoroko

Hi guys,

I have a problem and maybe you can help me. I made a macro that changes the name of the selected shape. What I want is to change the name of the shape when I drop the shape to the page but the problem is that I already have a EventDrop in the ShapeSheet. This shape has the RUNADDON("DBS") in EventDrop so when I drop it to the page, the shape read information from a database.
So I wrote on EventDrop=RUNADDON("DBS")+RUNMACRO("ProyectosVisio.Module1.ChangeName") but the ChangeName macro starts before the "DBS" finishes. Is it any way to get ChangeName macro wait until the DBS finishes and not start before it? 

Sorry by my english