I am having a few problems with this script:
cell D5 contains the formula: ="S:\Contact Centre Analyst\Adams\Tiger Data\Tiger Data - "&TEXT(MONTH(WORKDAY(TODAY(),-1))*29,"MMM")&" "&YEAR(WORKDAY(TODAY(),-1))&".xls"
D7 - =DAY(WORKDAY(TODAY(),-1))
When I step through the code step by step it works perfectly, but unfortunately when I run it normally, it doesn't appear to select the correct sheet. I'm thinking its because the references are calculated within the cell rather than the code itself (not entirely sure if this actually makes a difference or not).
Does anyone have a suggestion or two to resolve this?
Bookmarks