Propiedad Range.ListHeaderRows (Excel)

Devuelve el número de filas de encabezado para el rango especificado. Long de sólo lectura.

Sintaxis

expresión. ListHeaderRows

expresión Variable que representa un objeto Range.

Comentarios

Antes de usar esta propiedad, use la propiedad CurrentRegion para buscar los límites del intervalo.

Ejemplo:

En este ejemplo se establece la rTbl variable en el intervalo representado por la región actual de la celda activa, sin incluir ninguna fila de encabezado.

Set rTbl = ActiveCell.CurrentRegion 
' remove the headers from the range 
iHdrRows = rTbl.ListHeaderRows 
If iHdrRows > 0 Then 
 ' resize the range minus n rows 
 Set rTbl = rTbl.Resize(rTbl.Rows.Count - iHdrRows) 
 ' and then move the resized range down to 
 ' get to the first non-header row 
 Set rTbl = rTbl.Offset(iHdrRows) 
End If

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.