-1
感謝您的幫助。我可能沒有適當地迭代。也許我應該給活動表分配一個整數?
Sub TabNames()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
ActiveSheet.Name = "herp"
Next ws
ActiveSheet.Name = "derp"
Next ws
ActiveSheet.Name = "herp derp"
Next ws
ActiveSheet.Name = "derp herp"
Next ws
ActiveSheet.Name = "herp herp"
Next ws
ActiveSheet.Name = "derp derp"
End Sub