georgedwilkinson
AWF VIP
- Local time
- Today, 12:53
- Joined
- Mar 4, 2008
- Messages
- 3,819
Does anyone know why I get the 'Invalid Argument' error when I run the code that I last posted?
Just a guess. You primed Dir() and then went on to ignore the first result from Dir(). That's not the way a Do While loop works.
You need to use the value from that first run of Dir. Don't use Dir() directly in your transfer method. Assign Dir() to a variable as one of the last things you do within a loop.