Sub RenameFolders()
Dim vSrc, vTarg
On Error GoTo errFix
Range("B2").Select
While ActiveCell.Value <> ""
vSrc = ActiveCell.Value
vTarg = ActiveCell.Offset(0, 1).Value
Name vSrc As vTarg
ActiveCell.Offset(0, 2).Value = "success"
goNext:
ActiveCell.Offset(1, 0).Select 'next row
Wend
MsgBox "Done"
Exit Sub
errFix:
ActiveCell.Offset(0, 2).Value = "fail"
Resume goNext
End Sub