I am looking for a way to rename image files. I used the embedded VBA Macro twice successfully, but all of a sudden it stopped working.
I was wondering what was wrong and if there was a better, less temperamental solution to doing this. The whole premise was to create a loop where every image name in column A would be renamed to the corresponding value in column B. I have attached my workbook I have been using as well.
I was wondering what was wrong and if there was a better, less temperamental solution to doing this. The whole premise was to create a loop where every image name in column A would be renamed to the corresponding value in column B. I have attached my workbook I have been using as well.
Code:
Sub Macro2()
'
' Macro2 Macro
'
z = 1
For z = 1 To 1057
Name "F:\RetailSource\Images\Folder 1\" & Range("a" & z).Value & ".jpg" As "F:\RetailSource\Images\Folder 2\" & Range("b" & z).Value & ".jpg"
Next z
'
End Sub