Results 1 to 6 of 6

Way to Get Around Macros Not Working in Protected Sheet?

Threaded View

  1. #1
    Registered User
    Join Date
    05-16-2013
    Location
    Chiang Mai, Thailand
    MS-Off Ver
    Excel 2010
    Posts
    34

    Way to Get Around Macros Not Working in Protected Sheet?

    Hi,

    Is there a way to get around macros not working in a protected sheet? I want to allow user to enter multiple responses using the following code, but it won't work if sheet is protected.

    Sub mymacro()
         
        ActiveSheet.Unprotect ("lfw")
         
        'your code here
         
        ActiveSheet.Protect ("lfw")
         
    End Sub
    Is there a code I can use to override the disabling of macro when I protect sheet? I want to protect sheet so users don't accidentally change codes, field titles, lists, etc....

    Thanks,
    Lyndy


    Moderators note: code tags added for you - this time
    Last edited by FDibbins; 05-21-2013 at 11:55 PM. Reason: Added code tags

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