+ Reply to Thread
Results 1 to 15 of 15

DoubleClick Event - Supress CutCopyPaste after Cancel?

  1. #1
    Registered User
    Join Date
    11-08-2006
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    37

    Question DoubleClick Event - Supress CutCopyPaste after Cancel?

    When a Workbook_SheetBeforeDoubleClick event sets Cancel = True the normal double-click cell edit action is suppressed, as expected, but CutCopyPaste mode is activated as a side effect. Adding an Application.CutCopyMode = False statement to the event code does not have any effect. The user has to press Escape to get rid of the "Select destination and press ENTER or choose Paste" prompt.

    DblClickCancel.png

    Is there any way of suppressing the CutCopyPaste prompt or is this working as designed?

    Regards, AB

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: DoubleClick Event - Supress CutCopyPaste after Cancel?

    do you have any code in the worksheet?
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    11-08-2006
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    37

    Re: DoubleClick Event - Supress CutCopyPaste after Cancel?

    Quote Originally Posted by JosephP View Post
    do you have any code in the worksheet?
    No. The only code in my test case is the Workbook_SheetBeforeDoubleClick subroutine in ThisWorkBook and I said in my OP, the Application.CutCopyMode makes no difference.
    Please Login or Register  to view this content.

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: DoubleClick Event - Supress CutCopyPaste after Cancel?

    if you comment out that code and doubleclick a cell what happens? do you get the same copy mode? which version of excel do you have?
    Last edited by JosephP; 05-24-2012 at 02:09 AM.

  5. #5
    Registered User
    Join Date
    11-08-2006
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    37

    Re: DoubleClick Event - Supress CutCopyPaste after Cancel?

    If the DoubleClick event is missing or supressed, then double click puts the cell into edit mode. This is normal behaviour. I first noticed the symptom in Excel 2003 running in an XP virtual machine. I subsequently created a test case (new blank Excel workbook, no macros except for the DoubleClick event handler) in Excel 2010 on my work laptop. Symptoms are the same in both environments.

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: DoubleClick Event - Supress CutCopyPaste after Cancel?

    it doesn't happen for me. do you get the same behavior if you run excel in safe mode? also if you use a worksheet_beforedoubleclick do you get the same issue?

  7. #7
    Registered User
    Join Date
    11-08-2006
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    37

    Re: DoubleClick Event - Supress CutCopyPaste after Cancel?

    Quote Originally Posted by JosephP View Post
    it doesn't happen for me.
    That's useful input. When I get home I'll try on another system. Given that it doesn't happen to you, and I'm not prone to paranoia, I'll have to explore other avenues. Regional settings spring to mind but that may be grasping at straws.

    In answer to your question, I do see the same symptom with worksheet_beforedoubleclick.

  8. #8
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: DoubleClick Event - Supress CutCopyPaste after Cancel?

    and safe mode?

  9. #9
    Registered User
    Join Date
    11-08-2006
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    37

    Re: DoubleClick Event - Supress CutCopyPaste after Cancel?

    Quote Originally Posted by JosephP View Post
    and safe mode?
    I haven't tried that yet but I have confirmed that the same code does not display the symptom on my desktop (Excel 2010) at home. If, as and when I get to the bottom of what's causing this I'll report back to close the loop. Thanks for your help.

    Regards, AB

  10. #10
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: DoubleClick Event - Supress CutCopyPaste after Cancel?

    if it doesn't happen when you run Excel in Safe Mode then you'll know that it's one of your addins or startup files (most likely cause imo)

  11. #11
    Registered User
    Join Date
    11-08-2006
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    37

    Re: DoubleClick Event - Supress CutCopyPaste after Cancel?

    Quote Originally Posted by JosephP View Post
    if it doesn't happen when you run Excel in Safe Mode then you'll know that it's one of your addins or startup files (most likely cause imo)
    I'd agree with you if it just happened on the top level system but the virtual machine (Excel 2003) system is pure vanilla. No addins, no startup files.

  12. #12
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: DoubleClick Event - Supress CutCopyPaste after Cancel?

    that might depend on what folders you shared between the two? anyway, would only take a minute to test. :-)

  13. #13
    Registered User
    Join Date
    11-08-2006
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    37

    Re: DoubleClick Event - Supress CutCopyPaste after Cancel?

    Further testing suggests that this may be caused by a combination of some mix of a VM running on VMWare ESXi under VMWare Workstation on a corporate Intranet. Much more debugging to be done.... (tomorrow). Exciting stuff. I'll keep you posted.

  14. #14
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: DoubleClick Event - Supress CutCopyPaste after Cancel?

    of course, I should have thought of that. ;-)

  15. #15
    Registered User
    Join Date
    11-08-2006
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    37

    Smile Re: DoubleClick Event - Supress CutCopyPaste after Cancel?

    Quote Originally Posted by JosephP View Post
    of course, I should have thought of that. ;-)
    Well, the answer turns out to be even more esoteric than I had imagined. I have narrowed it down to an application - Concise Oxford English Dictionary 12th edition, revised, on CD-ROM (v1.0) - which I fire up reasonably often. When this application is open, double click in Excel (where the workbook includes a BeforeDoubleClick event that sets Cancel = True) sets the CutCopy marquee active. When the application is closed, double click behaves normally. I will report this to the COED developers.

    Regards, AB
    Last edited by aussieboykie; 05-29-2012 at 02:49 AM. Reason: Add reference to BeforeDoubleClick event.

+ 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