Hello,
I need some assistance with VBA to open a file where the year, month, and days change on a daily basis.
The filepath will be as such:
- So the "2016" after Treasury will change on a yearly basis
- The month (in "12 DTCC Current Day" segment) will change on a monthly basis
- and the file name "NPH DTCC 12.19.CD MF.xlsx" will change on a daily basis.
Can someone help me construct this into VBA? I will be using this to run a macro every day, so it would be convenient.
Thanks in advance!!!!
I need some assistance with VBA to open a file where the year, month, and days change on a daily basis.
The filepath will be as such:
Code:
S:\NPH Accounting\NPH Accounting Department\Treasury\2016\5 NPH FundServ\01 Daily\DTCC Settlement Reports Daily\05 Current Day DTCC Settlement\05 NPH\12 DTCC Current Day\NPH DTCC 12.19 CD MF.xlsx"
- So the "2016" after Treasury will change on a yearly basis
- The month (in "12 DTCC Current Day" segment) will change on a monthly basis
- and the file name "NPH DTCC 12.19.CD MF.xlsx" will change on a daily basis.
Can someone help me construct this into VBA? I will be using this to run a macro every day, so it would be convenient.
Thanks in advance!!!!