+ Reply to Thread
Results 1 to 4 of 4

Maintain double-click feature

  1. #1
    Registered User
    Join Date
    10-18-2011
    Location
    Leeds, UK
    MS-Off Ver
    Excel 2007
    Posts
    6

    Maintain double-click feature

    Hello,

    I've written code to utilise Worksheet_BeforeDoubleClick(). The code only runs if the selected cell intersects with a specific column, otherwise it does nothing. Trouble is it's disabling the normal function of being able to double-click to edit a cell. Is there a way to mimic clicking into the cell for editing with VBA?

    Thanks,

    Russ
    Last edited by rlarkin; 10-18-2011 at 07:10 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,997

    Re: Maintain double-click feature

    Please post the code and/or a sample workbook.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,966

    Re: Maintain double-click feature

    Only set Cancel = True if the clicked cell is in the range of interest.
    Everyone who confuses correlation and causation ends up dead.

  4. #4
    Registered User
    Join Date
    10-18-2011
    Location
    Leeds, UK
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Maintain double-click feature

    Perfect. Thank you.

+ 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