Share via

Visio Copy - Paste issue

Swathi 0 Reputation points
2026-03-26T13:15:35.07+00:00

I am facing issue an issue with Microsoft Visio, where copy-paste is not working as expected. When I copy an object within Visio and paste it in Visio, a different object is pasted instead of the one I copied.

Microsoft 365 and Office | Visio | Other | Windows
0 comments No comments

2 answers

Sort by: Most helpful
  1. Gabriel-N 17,700 Reputation points Microsoft External Staff Moderator
    2026-03-26T14:26:30.83+00:00

    Dear Swathi

    For normal UI copy/paste (Ctrl+C / Ctrl+V), a few things you can try:

    • Make sure the correct object is actually selected before copying, especially if the shape is inside a group or container. In some cases, Visio may copy the group or container instead of the individual shape, which can make it look like a “different” object is pasted.
    • Try using Paste Special (Ctrl+Alt+V) and choose Visio Drawing Object / Visio Shapes. This forces Visio to paste the original Visio shape rather than another clipboard format (such as an image or OLE object). This is a common workaround when the pasted object doesn’t match what was copied.
    • Clear the Windows clipboard and test again. Go to Settings > System > Clipboard > Clear clipboard data, then reopen Visio and retry copy‑paste. Clipboard conflicts can sometimes cause unexpected paste results in Office apps, including Visio.
    • Start Visio in Safe Mode (windows +R then type visio /safe > hit Enter) and test copy‑paste there. If it works correctly in Safe Mode, the issue is likely caused by an add‑in. You can then disable add‑ins one by one to identify the conflict.
    • Ensure Visio is fully up to date. Some copy/paste issues have been resolved in newer builds, and updating Visio can eliminate unexpected clipboard behavior.

    If the problem still occurs after these checks, it would help to know:

    • Whether the shape is inside a group or container
    • Whether this happens in a new blank Visio file
    • Your Visio version and build number

    Looking forward to your reply.


    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.  

    Was this answer helpful?


  2. AI answer

    2026-03-26T13:16:05.59+00:00

    Use the Visio Paste/PasteSpecial behavior and flags to control what is pasted and ensure the correct object is returned from the Clipboard.

    1. When using VBA or automation, avoid the deprecated Window.Paste method. Instead, paste into the correct target object:
      • For pasting onto a page: use Page.Paste or Page.PasteSpecial.
      • For pasting into a master: use Master.Paste or Master.PasteSpecial.
      • For pasting into a group shape: use Shape.Paste or Shape.PasteSpecial.
    2. If pasting shapes (not text or images), use the Paste method with consistent copy/paste flags so that the same shapes are pasted:
      • Flags are defined in VisCutCopyPasteCodes, for example:
        • visCopyPasteNormal (&H0) – default behavior.
        • visCopyPasteNoTranslate (&H1) – keeps original coordinates.
        • visCopyPasteNoCascade (&H64) – prevents offsetting on copy.
      • Use the same flag values for both copy and paste to ensure shapes are pasted in the expected location and form.
    3. If the issue is that the format or type of object changes when pasting (for example, pasting as a bitmap instead of Visio shapes), use PasteSpecial and explicitly specify the format:
      • For Visio shapes: visPasteVisioShapes (65540) or visPasteVisioShapesXML (65545).
      • For text: visPasteText (1) or visPasteRichText (65537).
      • For OLE objects: visPasteOLEObject (65536).
      • For hyperlinks or URLs: visPasteHyperlink (65538) or visPasteURL (65539).
    4. If the Clipboard content is being pasted into the wrong container or group, use the flags that control container behavior when copying/pasting:
      • visCopyPasteDontAddToContainers (65536 decimal flag value 32 in VisCutCopyPasteCodes) – prevents pasted shapes from being added to underlying containers.
      • visCopyPasteNoContainerMembers (8) – avoids cutting/copying unselected container members.
      • visCopyPasteNoAssociatedCallouts (16) – avoids copying callouts.
    5. If pasting via the UI (Ctrl+C / Ctrl+V) and the wrong object appears, verify that the correct object is actually selected before copying, and that no group shape is intercepting the paste. For group shapes, the Paste method only works on group Shape objects; use the Type property to confirm the shape is a group before pasting into it.
    6. If linking Visio content into another Office document and seeing unexpected objects, use the application’s Paste Special dialog and choose Paste Link as Microsoft Visio Drawing Object so that the correct Visio drawing page is linked and displayed.

    If the problem occurs only with a specific macro or add-in, adjust that code to use Page.Paste/Page.PasteSpecial, Master.Paste/Master.PasteSpecial, or Shape.Paste/Shape.PasteSpecial with the appropriate flags and paste format constants listed above.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.