Dear Mudraker,
thanks for your reply.
Now I found out that the folder that was last accessed with the
FileDialog, is set by Windows as the Current Directory. And it seems
that renaming the Current Directory is not allowed.
When I change the Current Directory (ChDir left(CurDir,3)) then I can
rename my folder.
Maybe this is also a solution for the cases you encountered problems
with renaming a folder that was last accessed before with the
FileDilog.
Kind regards,
hugo de wilde
--
H.A. de Wilde
------------------------------------------------------------------------
H.A. de Wilde's Profile:
http://www.excelforum.com/member.php...o&userid=30679
View this thread:
http://www.excelforum.com/showthread...hreadid=552051