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!!

:smile:
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
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,222,148
Messages
6,164,234
Members
451,881
Latest member
John kaiser

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