Share via

Copied Items are Pasted Twice

Anonymous
2014-09-11T15:35:50+00:00

I have a new DELL XP15 Laptop with Windows 8.1 and Office 2010.

When I copy a section of text and select paste, the text is pasted twice. For example if I copy "alphabet" it will appear as "alphabet alphabet" when pasted.

I am copying from and to the same document. It doesn't seem to make any difference if I copy/paste using the mouse or a keyboard shortcut.

Has anyone seen this problem?

Thanks

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
  1. Stefan Blom 338.5K Reputation points MVP Volunteer Moderator
    2014-09-15T11:31:46+00:00

    OK, so you are not calling EditPaste explicitly. How is the Macro1 sub routine used then?

    Of course, if you don't need to intercept EditPaste, you could just rename the macro in your code.

    8 people found this answer helpful.
    0 comments No comments

17 additional answers

Sort by: Most helpful
  1. Stefan Blom 338.5K Reputation points MVP Volunteer Moderator
    2014-09-14T18:30:37+00:00

    I would use Selection.Paste instead of Selection.PasteAndFormat and see if that makes a difference.

    1 person found this answer helpful.
    0 comments No comments
  2. Stefan Blom 338.5K Reputation points MVP Volunteer Moderator
    2014-09-11T18:51:02+00:00

    If you look at the Undo drop down (on the Quick Access Toolbar), what do you see? Is the paste listed twice?

    If you run Office in Safe mode (temporarily, as a troubleshooting step), then does paste behave normally?

    To start in Safe mode, you can hold the Ctrl key as you start Word the way you normally would; when asked about Safe mode, click yes.

    1 person found this answer helpful.
    0 comments No comments
  3. Stefan Blom 338.5K Reputation points MVP Volunteer Moderator
    2014-09-12T09:14:53+00:00

    Since this happens when you run a macro, you need to post the code.

    0 comments No comments
  4. Anonymous
    2014-09-12T03:42:48+00:00

    Hi Stefan

    You might be onto something here.

    I should clarify that the problem was occurring in one of my Word macros, where the function pasted twice instead of once and upset the sequence of events in the macro.

    I did a basic test in Word:

    1. I typed the word "MyText"

    2. Selected the text and recorded a macro which copied the text and pasted it on the line below.

    1. I then cleared all of the Undo functions.
    2. I highlighted the text and ran the macro.
    3. The text was only pasted once; however
    4. When I checked the Undo events, the following was listed twice:

    VBA-Range.Paste

    VBA-Range.Paste

    The same thing occurred in Safe Mode.

    When I use the Undo events, the text does not disappear until I select the second VBA-Range.Paste.

    I am not sure what all this means, but it seems it may have something to do with my problem.

    Many thanks

    0 comments No comments