+ Reply to Thread
Results 1 to 5 of 5

Worksheet_BeforeDoubleClick with sheet protection works every other time

  1. #1
    Registered User
    Join Date
    08-17-2012
    Location
    Serbia
    MS-Off Ver
    Excel 2010
    Posts
    85

    Worksheet_BeforeDoubleClick with sheet protection works every other time

    Problem started when I've added sheet protection lines, so now every other time macro is working (row is inserted). I don't know what could be wrong. If those two lines are deleted everything is working as it should.


    Please Login or Register  to view this content.
    Last edited by Jovica; 06-05-2013 at 05:02 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Worksheet_BeforeDoubleClick with sheet protection works every other time

    You don't need the following lines in your code :-
    Please Login or Register  to view this content.
    Delete them and see how it performs
    Elegant Simplicity............. Not Always

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

    Re: Worksheet_BeforeDoubleClick with sheet protection works every other time

    I reckon the unprotect line should be after the two exit sub lines
    Josie

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

  4. #4
    Registered User
    Join Date
    08-17-2012
    Location
    Serbia
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Worksheet_BeforeDoubleClick with sheet protection works every other time

    Those lines don't cause problems, since they were there before problems started, besides I need
    Please Login or Register  to view this content.
    cause there are formulas in every row that needs to be copied.

    Skipping every other turn, when I double click, started happening after I inserted those two lines for sheet protection.

  5. #5
    Registered User
    Join Date
    08-17-2012
    Location
    Serbia
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Worksheet_BeforeDoubleClick with sheet protection works every other time

    @JosephP You are right. I've tried moving that line but I guess I didn't try that combination.

    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