+ Reply to Thread
Results 1 to 3 of 3

Application.EnableEvents = True preventing me from copy and Paste.

  1. #1
    Forum Contributor
    Join Date
    09-21-2012
    Location
    illinois
    MS-Off Ver
    Excel 2010
    Posts
    242

    Application.EnableEvents = True preventing me from copy and Paste.

    Has anyone heard of this in many of my Macros I turn off EnableEvents then trun them back on. I just found out that because of this I cannot cut and paste unless I turn it off. I thought it was turned on by default.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Application.EnableEvents = True preventing me from copy and Paste.

    Hello Turtleman10,

    The only time you should turn off Events is when you are writing code for event procedures that may trigger themselves by changing a worksheet value like the Worksheet_Change or Worksheet_SelectionChange events. If you do not turn of events and modify a cell or select another cell, you could trigger an infinite loop.

    Copy and Paste operations done in VBA are not tied to Worksheets events. It would not matter if events were enabled or not.

    To better understand your problem it would help if attach your workbook.

    To Post Your Workbook
    1. At the bottom right of the Reply window, Click the button Go Advanced
    2. At the top of the Your Message Window, in the first row of icons, Click the Paperclip icon.
    3. Click the Add Files button at the top right in the dialog box. This displays the File Manager dialog.
    4. Click the Select Files button at the bottom middle of the dialog.
    5. In the new window Find the file you want to upload, select it, and Click Open.
    6. You will now be back in the File Manager dialog. Click the bottom Middle button Upload File.
    7. Wait until the file has completely uploaded before you exit the File Manager dialog.

    File Manger Pic
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    09-21-2012
    Location
    illinois
    MS-Off Ver
    Excel 2010
    Posts
    242

    Re: Application.EnableEvents = True preventing me from copy and Paste.

    I just figured out what the issue is I was tuning off events on a selectionchange event so I would select my cell copy then select the cell I was copying into when I did the second selection it would turn off events and cancle my copy.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1