Paste object in absolute location

P

Paul F

When copying an object from one Visio page to another, I want to paste the
object in the same absolute position as the original object (the same way
copy/paste works in Power Point). How can I do this automatically so that I
do not have to manually adjust the XY coordinates after pasting the object?
 
J

John Haug \(MSFT\)

Edit > Paste does not automatically maintain the same X/Y coordinates, but
you can do this through the API. If you want to do this, take a look at the
Copy and Paste methods in the Visio SDK. In short, pass in the
visCopyPasteNoTranslate flag to Selection.Copy and also to Page.Paste. You
may consider keeping these one-line macros and setting a shortcut key so you
can reuse them in your document.

HTH.
 
L

Leigh Clow

Hi,

Sorry but I'm new to this. What file do I edit to set these flags? Thanks.
Leigh Clow
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top