This is a strange one as it does appear that excel is doing exactly as it is asked however the result is incorrect.
Basically I have two picture files whose filenames I want to swap. I am using the codeWhat happens is that the first two changes work correctly and I have files named temp1 & temp2 then when line three is actioned temp1 gets changed to firstname as it should BUT the picture that the filename represents changes to its original as does temp 2 when the final change is actioned. the end result being that I end up with the same files as I started with.Please Login or Register to view this content.
I added the application.wait just to ensure the program had sufficient time to make the change though that made no difference.
I hope I have explained this well enough, it is really strange
Bookmarks