+ Reply to Thread
Results 1 to 6 of 6

DoubleClick Macro giving error on other computers

  1. #1
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    DoubleClick Macro giving error on other computers

    I have a complex sample logging workbook. There are some locked cells and a before doubleclick vba code to insert date and name. I have the following code which allows the code to modify without unprotecting and reprotecting
    Please Login or Register  to view this content.
    Works fine when I do it. So I send it to someone else and they save it but when they do a double click, they get the typical "this cell is protected blah blah" Any thoughts on this?
    Thanks in advance.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  2. #2
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: DoubleClick Macro giving error on other computers

    Dumb question:
    Is Target on sheet LogIn?
    CC


    If you feel really indebted please consider a donation to charity. My preferred charity is ActionAid but there are plenty of worthy alternatives.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: DoubleClick Macro giving error on other computers

    Hey, always have to ask if it's plugged in first. Yes, it is worksheet "LogIn"

  4. #4
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: DoubleClick Macro giving error on other computers

    Second guess:
    I think you need to set cancel = true for the before double click event.

    If you aren't doing this, the code will work fine, but the double-click uncancelled will then try to edit the target cell.

    I can imagine this would vary according to whether users have 'allow editing in cell' switched on or off. This would explain 'erratic' behaviour for you. Which I could test, I suppose.

  5. #5
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: DoubleClick Macro giving error on other computers

    I can confirm, because it wasn't that hard to test, that if 'Allow editing directly in cell' is switched on, you need to cancel the double click in the event macro. It's no surprise that you have it switched off CB!

    Call me Sherlock.

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: DoubleClick Macro giving error on other computers

    Thank you Charlie. I will confirm with my test subject and close this thread.

+ 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