#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default Date Expiry function

Hi Aleks

You can use the workbook open event to close the workbook after a certain date

Private Sub Workbook_Open()
If Date DateSerial(2007, 1, 25) Then
ThisWorkbook.Close False
End If
End Sub


can input any more data till another spreadsheet
is available after data analysys.


You can also test with Dir if the other workbook is there before you close the file



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Aleks" wrote in message ...
Hi Ron,

i want to force users to use the macro , and yes code is an option

Thanks


"Ron de Bruin" wrote:

Hi Aleks

You need code to do that.
If the user disable macro's it is possible to change the data

Is code a option ?

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Aleks" wrote in message ...
Hi,

I need to setup my excell spreadsheet that is doing some calculations, in
such a way that after certain date ,(say 25/01/2007) the spread**** is going
to be rendered as disabled so that nobody (spreadseett wil be available
through LAN of my company) can input any more data till another spreadsheet
is available after data analysys.

Thank you


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
MATCH FUNCTION AND SERIAL DATE CONFLICTS Jones the Scouse Excel Worksheet Functions 4 November 1st 06 01:46 PM
"year" date function scott Excel Discussion (Misc queries) 3 September 11th 06 01:54 PM
Date formulas DRondeau Excel Discussion (Misc queries) 7 September 6th 06 09:53 PM
Mileage Claim Formula johndavies New Users to Excel 4 August 14th 06 09:24 AM
NETWORKDAYS - Multiple Date Selection Annabelle Excel Discussion (Misc queries) 3 October 4th 05 07:04 PM


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

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

About Us

"It's about Microsoft Excel"