+ Reply to Thread
Results 1 to 3 of 3

Cells getting locked while running macro in Excel 2007

  1. #1
    Registered User
    Join Date
    03-04-2010
    Location
    Chennai, India
    MS-Off Ver
    Excel 2007
    Posts
    2

    Cells getting locked while running macro in Excel 2007

    Unlocked cells in Protected worksheet are getting automatically locked while execution of macro in Excel 2007 thus preventing execution of further statements in the macro. For this particular case it is occuring while using "Range.Select" and "Range.clear" methods.

    Alternatively i am using activesheet.unprotect and activesheet.protect to solve this problem which is not a real solution.

    Could anyone suggest reasons for the same.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Cells getting locked while running macro in Excel 2007

    Not without seeing your code.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    03-04-2010
    Location
    Chennai, India
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Cells getting locked while running macro in Excel 2007

    Quote Originally Posted by Domski View Post
    Not without seeing your code.

    Dom
    The code corresponds to dynamic updating of list based on change in value of a particular cell.

    Please find the code below:

    Please Login or Register  to view this content.
    C4:D4 is the cell value which is tracked such that a change in this merged cell will update list in cell C6:D6. The cells C4:D4,C5:D5,C6:D6 are unlocked and the Sheet1 is protected.

    Regards,
    Mahe
    Attached Files Attached Files
    Last edited by asapu_mahe; 03-05-2010 at 01:46 AM. Reason: Include attachment

+ 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