Propiedad ListObject.InsertRowRange (Excel)

Devuelve un objeto Range que representa la fila Insert, si existe, de un objeto ListObject especificado. Range de sólo lectura.

Sintaxis

expresión. InsertRowRange

Expresión Variable que representa un objeto ListObject .

Comentarios

Si no se ve la fila de inserción porque la lista está inactiva, se devolverá el objeto Nothing.

Ejemplo:

En el ejemplo siguiente se activa el intervalo especificado por la propiedad InsertRowRange del objeto ListObject predeterminado en la primera hoja de cálculo del libro activo.

Function ActivateInsertRow() As Boolean 
 
 Dim wrksht As Worksheet 
 Dim objList As ListObject 
 Dim objListRng As Range 
 
 Set wrksht = ActiveWorkbook.Worksheets(1) 
 Set objList = wrksht.ListObjects(1) 
 Set objListRng = objList.InsertRowRange 
 
 If objListRng Is Nothing Then 
 ActivateInsertRow = False 
 Else 
 objListRng.Activate 
 ActivateInsertRow = True 
 End If 
 
End Function

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.