I have a function to move/rename a file or folder. I have been using this in many projects for a long time without any problem. Until now.
This is the first time I have tried to use it to move a folder to another location that is not empty.
Below is what I am using to test the error:
I am including the function code at the bottom of this post.Please Login or Register to view this content.
Here's my question. What would be the best approach to amend this function so that it will allow (or achieve the same end result as) moving a folder to an existing non-empty folder?
To make this more challenging - I impose the following limitations: In interests of both performance and maximum compatibility I want to use native VBA only. By that I mean: No use of FSO, APIs or Shell
Here's the function. (Credit to Ken Puls MVP for the original version of fnblnExistsFileFolder) (I've added line numbering to make it easier to refer to specific lines)
Please Login or Register to view this content.
Bookmarks