Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date to close file PSM[_20_] Excel Worksheet Functions 2 November 23rd 09 08:50 AM
Auto_open and more.... Mike New Users to Excel 0 November 30th 06 07:13 PM
Excel shoud not close all active books when clicking close button technomike Excel Discussion (Misc queries) 0 June 10th 05 05:35 PM
auto_open? Jack Sons Excel Discussion (Misc queries) 0 February 22nd 05 09:16 PM
Why does spelling check close Excel when checking spanish? RCP Excel Discussion (Misc queries) 2 December 4th 04 07:37 PM


All times are GMT +1. The time now is 08:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"