You can always put your dim statements at the top.
One advantage of putting dims for complex functions like file browsers and the like is that it keeps the prerequisites for the function in the same viciinity of the code as the function call, and also, if the function is in a loop that does not get executed, I don't think the resources get allocated for the call. (???) If so, wouldn't that make the code run faster? Just a guess ...




Reply With Quote