Webbers
New Member
- Joined
- Oct 20, 2004
- Messages
- 41
Hello all!
I have been doing this manually for a while and had a "duh" moment, that I should have a macro! This is something I felt I would store in my Personal workbook rather than within a project I am working on, as the need to use it on multiple projects is obvious. I need a macro that will allow me to create a new folder with specific criteria. Using folder paths names such as these are beneficial as I have Work in Progress files for all my active projects
1) Create the folder in the path of the workbook that I am actively working in
2) The folder name should be the name of the parent folder and today's date (format: " - mm-dd-yyyy"
C:\UserData\Z0041M7C\Documents\WAA Projects\Fringe Benefit Rates <!--- path of active workbook
File Name for folder: Fringe Benefit Rates - 4-22-2019
Because the path would change as my active workbook changes I do not want this hard-coded. Also, I would love to add error handling in case I already created the folder. I had 24 files in my folder for 4-19-2019.
I have seen many examples of creating file directories, but I have had difficulty converting them to meet my needs, as they all contain a hard coded path and file name. I need variables so I can use this script for every project I work on. Any help is greatly appreciated. Thanks.
I have been doing this manually for a while and had a "duh" moment, that I should have a macro! This is something I felt I would store in my Personal workbook rather than within a project I am working on, as the need to use it on multiple projects is obvious. I need a macro that will allow me to create a new folder with specific criteria. Using folder paths names such as these are beneficial as I have Work in Progress files for all my active projects
1) Create the folder in the path of the workbook that I am actively working in
2) The folder name should be the name of the parent folder and today's date (format: " - mm-dd-yyyy"
C:\UserData\Z0041M7C\Documents\WAA Projects\Fringe Benefit Rates <!--- path of active workbook
File Name for folder: Fringe Benefit Rates - 4-22-2019
Because the path would change as my active workbook changes I do not want this hard-coded. Also, I would love to add error handling in case I already created the folder. I had 24 files in my folder for 4-19-2019.
I have seen many examples of creating file directories, but I have had difficulty converting them to meet my needs, as they all contain a hard coded path and file name. I need variables so I can use this script for every project I work on. Any help is greatly appreciated. Thanks.
Last edited by a moderator: