Hello
I want to be able to create a folder using a macro but I want to be able to do a few things prior to this:
1) I need the macro to go into the top level of the folder Specified in the Macro for example C:\test
2) I then want it to look to see if there is a folder in here and the lookup reference is as per the contents of cell F2 (contains a year) if the folder doesn’t exist then I would like it created and named based on the contents of F2, if it already exists then I want it to move on to the next step.
3) If the folder does exist I want to step into that folder and then check to see if another folder exists based on the contents of E2, again as before If it exists then step into the folder and if doesn’t then create it as per the contents of E2
4) Finally I need to see if it has got down to this step if the folder name as per D2 exists and again step into it if it does or if not I would want a folder created and names as per cell D2
So to summarise
Look @ location C:\test
See if folder named 2014 (Contents of cell F2) exists
If it does step into it, if it doesn’t create it as per Cell F2 and then step into it.
Now within this next folder check to see if a folder called Daily Stats August (contents off cell E2) exists
Again if it does step into it, if it doesn’t create it as per Cell E2 and then step into it.
Now within this next folder check to see if a folder called Daily 19 Aug (contents off cell D2) exists.
Again if it does step into it, if it doesn’t create it as per Cell D2 and then step into it.
If possible I would like the end location of the folder to be entered in cell G2 as text format as I will be moving some files into that end location.
Bookmarks