# TableInsertLines Method

> Inserts the given number of table lines above or below the line with the input position using txTableInsertInFront or txTableInsertAfter.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > TableInsertLines Method
- **401 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableinsertlines-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableinsertlines-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableinsertlines-method/llms-full.txt

---

This member function inserts table lines above or below the table line with the current input position. Table lines can only be inserted if the current input position is in a table and if no text is selected. The [TableCanInsertLines](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecaninsertlines-property/llms-full.txt) property informs whether table lines can be inserted.

### Syntax

```vbscript
TXTextControl.TableInsertLines Position, Lines
```

### Parameters

| Parameter | Description |
|---|---|
| Position | Specifies where to insert the table lines. Possible values are the following: |
| Lines | Specifies the number of lines to insert. |

#### Position

| Constant | Description |
|---|---|
| txTableInsertInFront (1) | Table lines are inserted above the line with the current input position. |
| txTableInsertAfter (2) | Table lines are inserted below the line with the current input position. |

### Return Value

The method returns True if the table lines could successfully be inserted. The method returns False if an error has occurred or if the current input position is not within a table.

### Data Types

| Name | Data type |
|---|---|
| Return value | Boolean |

### See Also

- [Formatting Text by using Number Formats](https://docs.textcontrol.com/tx-text-control-activex/document-editor/tables/number-formats/llms-full.txt)
- [Tables](https://docs.textcontrol.com/tx-text-control-activex/document-editor/tables/llms-full.txt)
- [Using Formulas in Table Cells](https://docs.textcontrol.com/tx-text-control-activex/document-editor/tables/formulas/llms-full.txt)
- [TableDeleteLines Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabledeletelines-method/llms-full.txt)
- [TableCanInsertLines Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecaninsertlines-property/llms-full.txt)
- [Programming Category: Tables](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/tables/llms-full.txt)

---

## Nearby

- **Previous:** [TableInsertDialog Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableinsertdialog-method/llms-full.txt)
- **Next:** [TableMergeCells Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablemergecells-method/llms-full.txt)
