Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Delete workbook after 30 days ...

Hi all,

I asked this question before. I have a template that
creates a number of workbooks each day that analyse the
stockmarket. These become obsolete at the end of the
trading day and relevant data transferred to a monthly
workbook.

As these daily workbooks build up and clog up the works I
need a macro that will automatically delete these after
30 days.

I have the date in cell AD1 and need a macro that will
kill files 30 days old.

Thanks in advance,

Susanne
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Delete workbook after 30 days ...

So, enlighten us, what was wrong with the answers supplied there?

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Susanne" wrote in message
...
Hi all,

I asked this question before. I have a template that
creates a number of workbooks each day that analyse the
stockmarket. These become obsolete at the end of the
trading day and relevant data transferred to a monthly
workbook.

As these daily workbooks build up and clog up the works I
need a macro that will automatically delete these after
30 days.

I have the date in cell AD1 and need a macro that will
kill files 30 days old.

Thanks in advance,

Susanne



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Delete workbook after 30 days ...

Hi Bob,

I was treated like a useless female and told not to
delete files automatically as I would get myself into
trouble ... like one day I might need a file.

If it is not possible to write a kill macro for 30 day
files as I have described then why not say so ...

Thanks in advance,

Susanne
-----Original Message-----
So, enlighten us, what was wrong with the answers

supplied there?

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Susanne" wrote in

message
...
Hi all,

I asked this question before. I have a template that
creates a number of workbooks each day that analyse the
stockmarket. These become obsolete at the end of the
trading day and relevant data transferred to a monthly
workbook.

As these daily workbooks build up and clog up the

works I
need a macro that will automatically delete these after
30 days.

I have the date in cell AD1 and need a macro that will
kill files 30 days old.

Thanks in advance,

Susanne



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Delete workbook after 30 days ...

Hi Susanne
we're all just carefull (nothing to do with male/female). Just lost too
much data myself due to automatic programs :-)
But now to your problem:
1. Though it is possible to write a macro to delete all files older
than 30 day this will require more VBA coding than just copy and paste.
In addition to make this code work, Excel has to run and I would
consider such kind of code dangerous (e.g., loss of data due to code
errors, etc.).
2. This was the reason I suggested some other stand-alone tools with
much more flexibility and easier user-interface (together with backup
functionality, etc.).

So I'd look into some shareware/open source programs which will do this
job. You can schedule these programs to run automatically at a specific
time (lunch break, etc.) and perform their deletion tasks

Regards
Frank


Susanne wrote:
Hi Bob,

I was treated like a useless female and told not to
delete files automatically as I would get myself into
trouble ... like one day I might need a file.

If it is not possible to write a kill macro for 30 day
files as I have described then why not say so ...

Thanks in advance,

Susanne
-----Original Message-----
So, enlighten us, what was wrong with the answers supplied there?

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Susanne" wrote in message
...
Hi all,

I asked this question before. I have a template that
creates a number of workbooks each day that analyse the
stockmarket. These become obsolete at the end of the
trading day and relevant data transferred to a monthly
workbook.

As these daily workbooks build up and clog up the works I
need a macro that will automatically delete these after
30 days.

I have the date in cell AD1 and need a macro that will
kill files 30 days old.

Thanks in advance,

Susanne



.



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
Delete entire row if older then 365 days Pas Excel Discussion (Misc queries) 2 April 4th 10 10:13 PM
Need to pull <=14 Days, <=30 Days, 30 Days from a date column Ken Excel Discussion (Misc queries) 3 October 23rd 09 12:53 AM
How to Delete a Range in Closed Workbook (to Replace Delete Query) [email protected] Excel Discussion (Misc queries) 1 March 8th 06 10:10 AM
how do you delete a workbook Bob Excel Discussion (Misc queries) 2 October 3rd 05 12:18 AM
Delete workbook after say 30 days ... Susanne[_2_] Excel Programming 6 January 26th 04 12:57 PM


All times are GMT +1. The time now is 04:12 PM.

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"