# TableInsertColumn Method

> Inserts a table column left or right of the column with the input position using txTableInsertInFront or txTableInsertAfter; returns True or False.

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

---

This method inserts a table column left or right of the column with the current input position. A table column can only be inserted if the current input position is in a table and if no text is selected. The [TableCanInsertColumn](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecaninsertcolumn-property/llms-full.txt) property informs whether a column can be inserted.

### Syntax

```vbscript
TXTextControl.TableInsertColumn Position
```

### Parameters

| Parameter | Description |
|---|---|
| Position | Specifies where to insert the table column. Possible values are the following: |

#### Position

| Constant | Description |
|---|---|
| txTableInsertInFront (1) | The column is inserted left of the column with the current input position. |
| txTableInsertAfter (2) | The column is inserted right of the column with the current input position. |

### Return Value

The method returns True if the table column 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)
- [TableDeleteColumn Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabledeletecolumn-method/llms-full.txt)
- [TableCanInsertColumn Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecaninsertcolumn-property/llms-full.txt)
- [Programming Category: Tables](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/tables/llms-full.txt)

---

## Nearby

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