+ Reply to Thread
Results 1 to 2 of 2

VBA to fully lock down the workbook after a specified date

  1. #1
    Registered User
    Join Date
    07-14-2014
    Location
    glasgow
    MS-Off Ver
    MS 365
    Posts
    39

    VBA to fully lock down the workbook after a specified date

    I looking for a VBA code that will lock down the whole excel workbook after a specific date.

    I've created a staff tracking (roster) program with excel that my boss has asked to licence from me.

    It wasn't the plan to licence but now that he has offered, I'm worried that after I've given a copy I won't be able to licence it again next year.

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: VBA to fully lock down the workbook after a specified date

    I'm not really sure it is safe enough for your application but you can try it.
    Put this macro in the "This workbook" section.
    Please Login or Register  to view this content.
    Change the password and the date to suit your needs.
    And set a password to your VBA Project so no one can play with your code. It can be set by right clicking on the the VBA Project name and selecting the VBA Project Properties and then the Protection tab.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Lock Workbook
    By jason.hampton in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-12-2015, 09:34 PM
  2. Is it possible to fully automate my workbook?
    By ebes69 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-28-2014, 06:17 PM
  3. VBA to fully automate a complicated workbook with multiple sheets
    By lawrence24 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-17-2014, 11:01 AM
  4. Replies: 4
    Last Post: 05-01-2013, 07:38 PM
  5. Lock workbook after a defined date
    By Oeysbrei in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-26-2012, 04:37 PM

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