Código: Selecionar todos
Sub AddAba()
Dim xName As String
Dim xSht As Object
On Error Resume Next
xName = InputBox("Por favor, insira um nome para esta nova planilha ", "Mucas Sistemas - 2021")
If xName = "" Then Exit Sub
Set xSht = Sheets(xName)
If Not xSht Is Nothing Then
MsgBox "A planilha não pode ser criada porque já existe uma planilha com o mesmo nome nesta pasta de trabalho"
Exit Sub
End If
Sheets.Add(, Sheets(Sheets.Count)).Name = xName
End Sub