Can any of you help me figuring out what's wrong with the code below?
Thanks
Sub Macro()
Dim w As Worksheet
For Each w In Worksheets
If w.Name = "indkey" Or _
w.Name = "subdivkey" Or _
w.Name = "Q2" Or _
w.Name = "Q5" Or _
w.Name = "data_ps3" Then
Else
Worksheet.Name = Range("Z2")
End If
Next
End Sub
Thanks