+ Reply to Thread
Results 1 to 5 of 5

macro not working with before double click.

  1. #1
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    macro not working with before double click.

    I think another pair of eyes can really help or a better approach.
    thanks.
    namedrangeattendace is D$13:$AB$59

    this should toggle letters X , H, C and "" on the given range


    Please Login or Register  to view this content.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,949

    Re: macro not working with before double click.

    1. You are missing a parameter:
    Private Sub Workbook_SheetBeforeDoubleClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean)

    2. I'm assuming that this is meant to work on multiple sheets since it's in the ThisWorkBook module(??) However, the named range refers to a particular sheet: =Sheet?!$D$13:$AB$59

    Please Login or Register  to view this content.
    Last edited by protonLeah; 03-09-2015 at 02:30 AM.
    Ben Van Johnson

  3. #3
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: macro not working with before double click.

    it should work on multiple.
    here's the file it's an attendance sheet where the user double clicks the cell to toggle
    X - whole day absent
    H- half day absent
    C cutting classes

    Attendance.xlsm

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,949

    Re: macro not working with before double click.

    Some slight mods:
    Please Login or Register  to view this content.
    Tested sat...
    Last edited by protonLeah; 03-09-2015 at 03:48 AM.

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: macro not working with before double click.

    Nice thanks.
    I didn't think of that.

    Regards,
    Vlady

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Add 1 to target on double click, add 0.5 on shift + double click
    By MarmaladeLover in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-26-2015, 06:59 AM
  2. Changing cell properties with double click, then revert with another double click
    By mweber2525 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-01-2014, 01:40 PM
  3. [SOLVED] Double Click Cell to go to Source not working
    By john60 in forum Excel General
    Replies: 5
    Last Post: 11-29-2012, 07:00 AM
  4. Double Click not working properly
    By MCertik in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-23-2012, 02:32 PM
  5. Double Click not working
    By tomberlins in forum Excel General
    Replies: 4
    Last Post: 10-16-2009, 02:56 PM

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