Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Auto_Open Check date and Close
I need help in writing a macro that will check Today() against a set
date in a cell and if Today() is after that set date, then the worksheet will immediately shut down. I want my auto_open macro to call the date macro and then to do it's work if the worksheet is still open. In other words, I only want users to be able to use the worksheet until a certain date and after that date I want the worksheet to shut down when they try to run it, or they will keep using it. All help will be appreciated. DLA |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Auto_Open Check date and Close
if they enable macros this will work
Private Sub Workbook_Open() If Date = "8/1/03" Then ActiveWindow.Close End If End Sub "DLS" wrote in message m... I need help in writing a macro that will check Today() against a set date in a cell and if Today() is after that set date, then the worksheet will immediately shut down. I want my auto_open macro to call the date macro and then to do it's work if the worksheet is still open. In other words, I only want users to be able to use the worksheet until a certain date and after that date I want the worksheet to shut down when they try to run it, or they will keep using it. All help will be appreciated. DLA |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Date to close file | Excel Worksheet Functions | |||
Auto_open and more.... | New Users to Excel | |||
Excel shoud not close all active books when clicking close button | Excel Discussion (Misc queries) | |||
auto_open? | Excel Discussion (Misc queries) | |||
Why does spelling check close Excel when checking spanish? | Excel Discussion (Misc queries) |