+ Reply to Thread
Results 1 to 2 of 2

I need to protect cells that contain formulas but on a huge scale.

  1. #1
    BR
    Guest

    I need to protect cells that contain formulas but on a huge scale.

    In Excel, I need to protect cells that contain formulas but for thousands of
    files and sheets. The real trick is being able to go back into these files
    and allow macros to operate properly while under protection. Any suggestions?
    Thanks

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good evening BR

    You can use a piece of code at the start of your module that will allow macros to run without problem on protected sheets :

    ActiveSheet.Protect UserInterfaceOnly:=True

    This will allow your macro to make changes to your sheet with the protection still in place. This will not automatically take effect every time the workbook is opened, so you would have to tie it to an event procedure to run it every time the file is used.

    HTH

    DominicB

+ 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