VBA - Rows


Inserting at the current position

Selection.InsertRowsBelow 
Selection.InsertRowsAbove
Selection.InsertRows


objTable.Rows.Add 

objTable.Rows.Add(Before:=Selection.Tables(1).Rows(2) 


Deleting



Row Heights


Set oTable = ActiveDocument.Tables.Add(Range:=oRange, _ 
                                       NumRows:=1, _
                                       NumColumns:=2, _
                                       DefaultTableBehavior:=WdDefaultTableBehavior.wdWord8TableBehavior, _
                                       AutoFitBehavior:=WdAutoFitBehavior.wdAutoFitWindow)
            
oTable.Rows(1).HeightRule = wdRowHeightExactly
oTable.Rows(1).Height = Application.CentimetersToPoints(2.4)



© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopPrevNext