I need a macro that will renamed a sheet as the user write into an input box. So far i've got this, but when I insert a new name, the old sheet doesnt change its name.
The comparison sheet already exists and is name as "Comparison". I just want to change its name according to a new one that the user will decide.
Sub SalvarAba()
If MsgBox("Keep comparison?", vbQuestion + vbYesNo, "Keep?") = vbYes Then
s = InputBox("Please enter a sheet name")
'rename the sheet
End If
End Sub
This may not be the best way to do it, so feel free to change it, if necessary.