Sub SheetRenameAll()
Dim chkMsg As String, chkAns As Variant
chkMsg = "This will rename all the sheets name based on the selected cell value, except the first sheet"
chkAns = MsgBox(chkMsg, vbYesNo)
Select Case chkAns
Case vbYes
'--------------------------------------------------------------
'code here
'--------------------------------------------------------------
Dim ws As Worksheet
Dim rng1 As Range, rng2 As String
Set rng1 = Application.InputBox("Select a cell", "Cell", , , , , , 8)
rng2 = rng1.Address(0, 0)
For Each ws In Worksheets
If ws.Index <> 1 Then
ws.Name = Split(ws.Range(rng2).Value, " (")(0)
End If
Next ws
'--------------------------------------------------------------
'code here
'--------------------------------------------------------------
Done:
Exit Sub
'-----------------------------------------------------------------
Case vbNo
GoTo Quit:
End Select
Quit:
End Sub