saving to directory

nick m

New Member
Joined
Sep 27, 2002
Messages
14
Hi experts..

I am trying to come up with a macro that will auto save a workbook. i have so far managed to create a directory and I have gotten it to save the date and time of save, however I am stuck with the rest, what I would like to do is... save all the preceding files as say file 1 then file 2 and so on, and each time name the file in ascending order. can you please tell me if this is possible, or give me a start for me to work from. So far I have

intFreeFile = FreeFile
Open "C:ullage\CreationDate.txt" For Output As #intFreeFile
Write #intFreeFile, "Folder was created : " & Now
Close #intFreeFile

I do not claim this as my own work I have gotten it from elsewhere,

PLEASE HELP!!

:)
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Thank you Jack, I will have a go tomorrow morning, my eyeballs are hanging out at the mo'

I must say this is a very good site, for numpties liek me it makes learning a whole lot easier.
Regards to all Nick
 
Upvote 0
Hui

Eye troubles -welcome to this board and EXCEL - standard that one im afrade my friend

Good stuff i wish you well, be sure to let me know!

HTH

Jack
 
Upvote 0

Forum statistics

Threads
1,214,782
Messages
6,121,532
Members
449,037
Latest member
tmmotairi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top