- Local time
- Today, 14:34
- Joined
- Feb 19, 2002
- Messages
- 47,029
MakeDir() is a function jdaw created that wraps around the intrinsic VBA function which is MkDir(). The function jdaw created displays a message every time it creates a directory so if you use that, you should probably comment out the msgbox function unless you want to keep saying OK for every directory.
When you call a function, the arguments are enclosed in parentheses so your code should be MakeDir("C", sDirBase & Format(iFolderCount, "0000")) but you need to copy the function jdaw posted and paste it into a standard code module. You'll know you got it right if when you type MakeDir( you'll get intellisense help for the arguments. Same with the standard MkDir() function.
When you call a function, the arguments are enclosed in parentheses so your code should be MakeDir("C", sDirBase & Format(iFolderCount, "0000")) but you need to copy the function jdaw posted and paste it into a standard code module. You'll know you got it right if when you type MakeDir( you'll get intellisense help for the arguments. Same with the standard MkDir() function.