Move a shape from one page to another

Started by AndyMacrae, February 10, 2017, 03:59:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

AndyMacrae

This seems like it should be really easy, but Google hasn't given me anything and hacking away at it hasn't helped either.

All I want to do is move a shape from one page in my visio to another in the same visio.  Can someone help me?  I tried to use Cut + Paste, but it has a tendency to disconnect my shape from the data source as well as prompt the user with the SQL Server Login dialog.  I can physically grab the shape, and drag and drop it onto the new page without breaking the data connection or causing the SQL dialog to show, so I know it must be possible to do with vba.

I'm sure I'm going to kick myself over the answer.  Any help anyone can provide is greatly appreciated.

wapperdude

Macro recorder should give necessary code.  Start it, then drag shape from one page to next. Stop recorder.  Use <alt> + f11 to bring up vba window.  Window on the left has tree to locate the code.

Wapperdude
Visio 2019 Pro