Propiedad Worksheet.Tab (Excel)

Devuelve un objeto Tab para una hoja de cálculo.

Sintaxis

expresión. Pestaña

Expresión Variable que representa un objeto Worksheet .

Ejemplo:

En este ejemplo, Microsoft Excel determina si el índice de color de la primera ficha está establecido como Ninguno y se lo comunica al usuario.

Sub CheckTab() 
 
 ' Determine if color index of 1st tab is set to none. 
 If Worksheets(1).Tab.ColorIndex = xlColorIndexNone Then 
 MsgBox "The color index is set to none for the 1st " & _ 
 "worksheet tab." 
 Else 
 MsgBox "The color index for the tab of the 1st worksheet " & _ 
 "is not set none." 
 End If 
 
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.