+ Reply to Thread
Results 1 to 3 of 3

Password promt after X time

  1. #1
    Registered User
    Join Date
    04-06-2016
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    89

    Password promt after X time

    Is it possible to set a date, and after that date it's not possible to view a worksheet without entering a password?

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Password promt after X time

    You could use the workbook open event and immediately close the workbook if the date has passed and a password in response to an input box request has not been entered.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    38,030

    Re: Password promt after X time

    To be fair, whilst it is possible, it's not that simple. If a user opens the workbook without enabling macros, your defence is immediately down. Therefore, you would need to hide the worksheet(s )(xlVeryHidden) before you close the workbook. You could then unhide the worksheet(s), with or without a password when you open the workbook with macros enabled.

    Be aware that Excel is not a secure environment.
    Trevor Shuttleworth - Excel Aid

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. [SOLVED] clicking a button on a promt box VBA
    By mike02 in forum Excel General
    Replies: 5
    Last Post: 08-03-2012, 11:59 AM
  2. [SOLVED] Solver, Promt box code
    By mike02 in forum Excel General
    Replies: 1
    Last Post: 07-24-2012, 02:36 AM
  3. Auto Save As no promt
    By meridklt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-21-2007, 07:24 PM
  4. [SOLVED] Input Box Promt
    By Aziz Ahmedabadwala in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-05-2006, 01:50 PM
  5. Promt when closing Excel
    By Carit in forum Excel General
    Replies: 0
    Last Post: 03-22-2006, 04:10 AM
  6. [SOLVED] ms query promt in vba
    By tina in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-21-2006, 11:45 AM
  7. [SOLVED] Can we Set Default value for the Excel promt(Y/N)
    By SpiderSwamy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-16-2006, 01:35 PM
  8. Comment Text Promt
    By Rob Hargreaves in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2005, 05:05 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