Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default Overwrite / Append files?

Make a backup of the folder with a date time stamp is a option
http://www.rondebruin.nl/folder.htm

Try

Sub Copy_Folder()

And use this in the code

'If you want to create a backup of your folder every time you run this macro
'you can create a unique folder with a Date/Time stamp.
'ToPath = "C:\" & Format(Now, "dd-mmm-yy h-mm-ss")


--
Regards Ron de Bruin
http://www.rondebruin.nl



"Aidan Engineer" wrote in message
...
At present every time I run my software package the output file overwrites
the previous one (as they have the same name). Is there any way of setting up
my folder so that instead of overwriting the previous file the new file gets
a number appended to it, hence keeping both the new and previous file.
i.e. previous file name = test
new file name = test(1)
etc..

Any help would be greatly appreciated.



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
Seemingly random .tmp files lbour New Users to Excel 3 August 14th 06 11:17 PM
How to update destination file with source files closed? Alex Costache Excel Discussion (Misc queries) 2 August 1st 06 10:08 AM
Recently Used File List - 2002 Contains 'Temp' Files Keith972002 Excel Discussion (Misc queries) 0 July 26th 05 01:46 PM
Excel will not append to €śopen with€ť menu for .txt files. Stumped Excel Discussion (Misc queries) 2 June 14th 05 10:47 PM
Cannot access read-only documents. tomgillane Excel Discussion (Misc queries) 14 February 7th 05 10:53 PM


All times are GMT +1. The time now is 05:11 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"