View Full Version : VBA Code for Excel sheet access denied
Dear Friends,
Anyone have code for stop user to access excel file after certain date.
paulked
10-17-2007, 09:43 AM
Take a look here: http://vbaexpress.com/kb/getarticle.php?kb_id=475
Regards
Paul Ked
Dear Paul,
The example is good but i would like fix the end date as shown below
Private Sub Workbook_Open()
Dim Enddate As Date
Enddate 18/10/2007 22:15
If Format(Now) = Enddate Then
MsgBox "Sorry, you can not access this file anymore"
End Sub
regards
Bob Phillips
10-18-2007, 07:22 AM
Is this any better http://www.cpearson.com/Excel/WorkbookTimeBomb.aspx
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.