I am useing the below code to imput date variables into filepaths. The problem that I am facing is that one file has a 6 month data range within the filename.
eg. (sample reports May 11 to Oct 11.xls)
In the below code I am useing TextBox25 to define the NapsMonth (in this case 10_Oct)
I then use another case statement to define Naps6Month as the 'NapsMonth - 6'.
However this is not working for me as, in this instance, NapsMonth - 6 would equal 4
but my case statement is searching for "04".
This solution as obviously going to cause more trouble at the start of a new year when the NapsMonth returns to 1 again.
Would anybody be able to offer a alternative work around for this?
Bookmarks