+ Reply to Thread
Results 1 to 6 of 6

HELP NEEDED: How to enabled macro with locked cells

  1. #1
    Registered User
    Join Date
    09-20-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    75

    Wink HELP NEEDED: How to enabled macro with locked cells

    Dear Excel Expert,

    Is there any way where I can used my macro-enabled sheet while locking certain cells in my excel sheet?

    Attached is part of my macro VBA code, thanks for your advise!

    Please Login or Register  to view this content.
    Last edited by Fotis1991; 05-29-2014 at 05:39 AM. Reason: pls use code tags around your codes!!

  2. #2
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: HELP NEEDED: How to enabled macro with locked cells

    unprotect it to run macro then protect it when the macro is finished.

    use: ActiveSheet.unprotect
    if password use ActiveSheet.unprotect password="mypassword"

    Please Login or Register  to view this content.


    Shelton A.
    If Helpful, Add Reputaion!

  3. #3
    Registered User
    Join Date
    09-20-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    75

    Re: HELP NEEDED: How to enabled macro with locked cells

    Dear fren, it works!
    Thanks for your help! Much appreciate that...

  4. #4
    Registered User
    Join Date
    09-20-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    75

    Re: HELP NEEDED: How to enabled macro with locked cells

    By the way, can anyone tell me how to close this thread since it has been solved?

  5. #5
    Registered User
    Join Date
    09-27-2007
    Location
    Staten Island, NY
    MS-Off Ver
    Office 2013
    Posts
    64

    Re: HELP NEEDED: How to enabled macro with locked cells

    Quote Originally Posted by joeyjee View Post
    By the way, can anyone tell me how to close this thread since it has been solved?
    Thread tools in the top menu, and selected solved.


  6. #6
    Registered User
    Join Date
    09-20-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    75

    Re: HELP NEEDED: How to enabled macro with locked cells

    Thanks Aris! :D

+ 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. Copy and paste locked cells, and have pasted cells retain LOCKED status.
    By stratloveslenny in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-16-2014, 03:05 PM
  2. Replies: 3
    Last Post: 04-12-2014, 04:47 AM
  3. VBA code needed to stop people selecting locked cells.
    By Jed Shields in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2013, 11:27 AM
  4. Macro into locked cells
    By elude3xo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-30-2006, 04:11 AM
  5. How to unlock locked cells by MACRO?!
    By Petr Nìmeèek in forum Excel General
    Replies: 1
    Last Post: 03-09-2006, 08:26 AM

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