+ Reply to Thread
Results 1 to 8 of 8

Can Worksheet_BeforeDoubleClick work over a DropBox?

  1. #1
    Forum Contributor
    Join Date
    08-02-2007
    Location
    Panama & Austria
    MS-Off Ver
    2003 & 2010
    Posts
    186

    Can Worksheet_BeforeDoubleClick work over a DropBox?

    Hi,
    I have a macro procedure that runs when doubleClick. This procedure is writen on the Sheet code under the "Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Excel.Range, Cancel As Boolean)".
    I realize that when there is a dropBox, the procedure does not start. It drops the dropBox menu instead of running the Macro.

    Is there any way to make the procedure run even when doubleclicking on DropBoxes?

    Thanks very much
    Last edited by Wizz; 05-13-2009 at 09:30 AM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Can Worksheet_BeforeDoubleClick work over a DropBox?

    Depends on the type of dropbox.

    If it's a Form control, then no. This only react to click.
    If it's a ActiveX control then you can code in the DoubleClick event of the control
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor
    Join Date
    08-02-2007
    Location
    Panama & Austria
    MS-Off Ver
    2003 & 2010
    Posts
    186

    Re: Can Worksheet_BeforeDoubleClick work over a DropBox?

    Sorry, I forgot to specify.
    It is a dropBox in a Cell, created with the menubar>Data>Validation.

    Would that count as a FormControl or ActiveX?

    Thanks for your time.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Can Worksheet_BeforeDoubleClick work over a DropBox?

    No data validation is data validation

    I can not replicate your problem. This works for me.

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    08-02-2007
    Location
    Panama & Austria
    MS-Off Ver
    2003 & 2010
    Posts
    186

    Re: Can Worksheet_BeforeDoubleClick work over a DropBox?

    You are so very right !
    Now I found out, in my case, the worksheet is protected and UNchecked "Modify Object" (Not sure the right translation. In any case, it is the second option from bottom up). I have some pictures and diagrams I can not allow users to modiffy.

    Is there any workarround or way I can make the "BeforeDoubleClick" work, but still keep the pictures and diagram blocked from nasty users abuse??

    Thanks again.

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Can Worksheet_BeforeDoubleClick work over a DropBox?

    Looks like shapes/pics/data validation all fall into the Modify Objects expection when protecting sheet.

  7. #7
    Forum Contributor
    Join Date
    08-02-2007
    Location
    Panama & Austria
    MS-Off Ver
    2003 & 2010
    Posts
    186

    Re: Can Worksheet_BeforeDoubleClick work over a DropBox?

    Too bad...for me.
    Thanks for your time.

    Should I mark this Thread as SOLVED or just delete it?

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Can Worksheet_BeforeDoubleClick work over a DropBox?

    Solved rather than delete it.
    You never know somebody may find this post useful whist using the Search.

+ 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