I have a folder I am copying pictures out of, if there are more than one picture of the same thing it will have a .1, .2 .3 ….after it.
This is working but I know that is a better way to do it I just don’t know how, there may be as many as 30 pictures of the same subject and doing this for that many is a lot.
Is is being used in Excel 2003
Thanks
This is working but I know that is a better way to do it I just don’t know how, there may be as many as 30 pictures of the same subject and doing this for that many is a lot.
Is is being used in Excel 2003
Thanks
Code:
For Each myCell In myRng.Cells
FileCopy Source:=myOldPath & myCell.Value & ".jpg", _
Destination:=myNewPath & myCell.Value & ".jpg"
FileCopy Source:=myOldPath & myCell & ".1.jpg", _
Destination:=myNewPath & myCell & ".1.jpg"
FileCopy Source:=myOldPath & myCell & ".2.jpg", _
Destination:=myNewPath & myCell & ".2.jpg"
FileCopy Source:=myOldPath & myCell & ".3.jpg", _
Destination:=myNewPath & myCell & ".3.jpg"
FileCopy Source:=myOldPath & myCell & ".4.jpg", _
Destination:=myNewPath & myCell & ".4.jpg"
FileCopy Source:=myOldPath & myCell & ".5.jpg", _
Destination:=myNewPath & myCell & ".5.jpg"
‘More numbers would be here
Next myCell