+ Reply to Thread
Results 1 to 4 of 4

Macro to autolock spreadsheet every Friday at 7pm

  1. #1
    Registered User
    Join Date
    06-14-2012
    Location
    California
    MS-Off Ver
    Office 365
    Posts
    56

    Macro to autolock spreadsheet every Friday at 7pm

    Is there a way to automatically lock a spreadsheet if it is opened on any Friday after 7pm? We dont want users inputting data after that time. Example: If they open the spreadsheet on any Fridya after 7pm, they will get a message saying that this spreadsheet has been locked. Thanks.

  2. #2
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: Macro to autolock spreadsheet every Friday at 7pm

    try this code:

    paste in :- Press Alt+F11>> Click on left side "Thisworkbook">>> paste the code

    Please Login or Register  to view this content.

  3. #3
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Macro to autolock spreadsheet every Friday at 7pm

    Of course, you need to consider what happens if the user disables macros, they will still be able to edit the workbook

  4. #4
    Registered User
    Join Date
    06-14-2012
    Location
    California
    MS-Off Ver
    Office 365
    Posts
    56

    Re: Macro to autolock spreadsheet every Friday at 7pm

    How can I make a password after it locks?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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