+ Reply to Thread
Results 1 to 3 of 3

Auto lock excel sheet

  1. #1
    Registered User
    Join Date
    11-13-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003, 2010
    Posts
    73

    Auto lock excel sheet

    Hi is there anyway to auto lock excel sheet based on today's date? I have 12 worksheets in one excel workbook. Each sheet represent one month. So E.g if todays month is Feb, January will be lock etc.
    The code will be sth like

    Please Login or Register  to view this content.
    Is it possible to auto it? as in once the date reaches first feb, sheet jan will be locked automatically.
    Thanks in advance

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,652

    Re: Auto lock excel sheet

    If you name this macro Auto_Open and put it in a standard code module, this macro will automatically run when the workbook is opened. It unprotects the sheet with the Month-name of the current date's month. All the other month sheets will be protected. Non month-named sheets are not affected.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-13-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003, 2010
    Posts
    73

    Re: Auto lock excel sheet

    Thanks for help!

+ 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