Small Paul
Board Regular
- Joined
- Jun 28, 2018
- Messages
- 118
Hi All
I have a number of worksheets produced each day which need saving.
The worksheet name is formatted as "yyyy mm dd"
I need it saved in the relevant month's folder and, if not available, set that folder up. The month folder is set as, for example, "08 August" and "09 September". This way, they sit in order within the year folder.
Ideally, the VBA would also set up a year folder when required.
Looking through other posts, the best I can find is:
which doesn't actually save the file at all!
The directory for the main file is:
Z:\Orders\2-Open Trades\yyyy\[08 August] see above\filename.xls
I can then adjust (primary folders) accordingly.
Any assistance would be appreciated.
Many thanks
Small Paul.
I have a number of worksheets produced each day which need saving.
The worksheet name is formatted as "yyyy mm dd"
I need it saved in the relevant month's folder and, if not available, set that folder up. The month folder is set as, for example, "08 August" and "09 September". This way, they sit in order within the year folder.
Ideally, the VBA would also set up a year folder when required.
Looking through other posts, the best I can find is:
Code:
Dim fPath As String MkDir "Z:\Orders\2-Open Trades" & Format(Date, "yyyy") & "" & Format(Date, "mm-yy")
fPath = "Z:\Orders\2-Open Trades" & Format(Date, "yyyy") & "" & Format(Date, "mm-yy")
which doesn't actually save the file at all!
The directory for the main file is:
Z:\Orders\2-Open Trades\yyyy\[08 August] see above\filename.xls
I can then adjust (primary folders) accordingly.
Any assistance would be appreciated.
Many thanks
Small Paul.