Visio Paste in same location as original shape

Started by Visisthebest, September 05, 2023, 12:00:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Visisthebest

I found a post on this subject:
http://visguy.com/vgforum/index.php?topic=1844.0

But I wonder if, rather than using the context menu to paste, if there is a way to get the shape pasted on the same place with CTRL+V (Paste shortcut).

Maybe something I can set with VBA/VB.NET? (so when the user uses CTRL+V, the behavior is paste in original shape's location).

CTRL+V (Paste shortcut) sometimes works fine pastes in place, but most often it pastes with an offset from the original shape's position.
Visio 2021 Professional

Surrogate

#1
Shape.Paste method have flags, which determines how shapes are translated during the paste operation.

Visisthebest

Thank you Surrogate I found those, but how to set this when a user performs the action via CTRL+V so there is no code running just default Visio paste functionality?
Visio 2021 Professional

Surrogate

#3
Tips for Copy/Paste in Visio 2010 (Including How to Copy a Page) (Visio Insights blog post)

OFFTOPIC




visCopyPasteNormal 0 Default value. Shapes are copied/pasted to the center of the active window.
visCopyPasteNoTranslate 1 Shapes are copied/pasted to their original coordinate locations.
visCopyPasteCenter 2 Copy shapes to the center of the page.