答案 0 :(得分:1)
尝试这样的事情
Sub RenameSheetToTableName()
Dim ws As Worksheet
Dim tbl As ListObject
For Each ws In ThisWorkbook.Sheets
On Error Resume Next
Set tbl = ws.ListObjects(1)
On Error GoTo 0
If Not tbl Is Nothing Then ws.Name = tbl.Name
Next ws
End Sub