bastanu
AWF VIP
- Local time
- Yesterday, 23:49
- Joined
- Apr 13, 2010
- Messages
- 1,406
That is what I had in post 10 as the first alternative, but that is not the problem.
A VBA function returns a value; in your you do not as you are using a variable declared in an external sub to assign the value to. You need to replace "startRange" with "BeginDate" everywhere within the function code (and a similar change for the other).
A VBA function returns a value; in your you do not as you are using a variable declared in an external sub to assign the value to. You need to replace "startRange" with "BeginDate" everywhere within the function code (and a similar change for the other).