Sub 批量重命名()
Dim y_name As String
Dim x_name As String
For i = 1 To Range("A1048576").End(xlUp).Row
y_name =
ThisWorkbook.Path & "\" & Cells(i, 1)
x_name =
ThisWorkbook.Path & "\" & Cells(i, 2)
On Error Resume
Next
Name y_name As
x_name
Next
End Sub