Nota:
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
Devuelve o establece un valor de tipo String que representa el nombre del objeto.
Sintaxis
más sencilla.Nombre
expresión Variable que representa un objeto Worksheet.
Ejemplo
En el ejemplo de código siguiente se establece el nombre de la hoja de cálculo activa de modo que sea igual a la fecha actual.
' This macro sets today's date as the name for the current sheet
Sub NameWorksheetByDate()
'Changing the sheet name to today's date
ActiveSheet.Name = Format(Now(), "dd-mm-yyyy")
'Changing the sheet name to a value from a cell
ActiveSheet.Name = ActiveSheet.Range("A1").value
End Sub
Soporte técnico y comentarios
¿Tiene preguntas o comentarios sobre VBA para Office o esta documentación? Vea Soporte técnico y comentarios sobre VBA para Office para obtener ayuda sobre las formas en las que puede recibir soporte técnico y enviar comentarios.