+ Reply to Thread
Results 1 to 4 of 4

Macros do not work when worksheet is protected

  1. #1
    Registered User
    Join Date
    09-24-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Macros do not work when worksheet is protected

    Hi

    Can someone please help me? I have a workbook that will be used by several people. I need the cells containing formulas to be locked, but when I protect the worksheet, the macros that i have in the workbook can't run - it comes up with an error message box.

    Please help! Thank you!

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Macros do not work when worksheet is protected

    At the beginning of your code where Protected cells are referred to enter a Line to UnProtect that Sheet.
    Some thing like:
    Please Login or Register  to view this content.
    And at the end of that Code Protect the Sheet again, something like:
    Please Login or Register  to view this content.
    Where "Sheet Name" = the actual name of the Sheet and "Password" = the actual password for that Sheet.

    Hope that helps.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Registered User
    Join Date
    09-24-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Macros do not work when worksheet is protected

    Brilliant, thank you!!

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Macros do not work when worksheet is protected

    You are wellcome,

    Please remember to mark your Thread as Solved.

+ 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