# TableDeleteColumn Method

> Deletes the selected table columns or the column with the input position and returns False when it is not within a table; see TableCanDeleteColumn.

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

---

This method deletes the currently selected table columns or the table column containing the text input position. The [TableCanDeleteColumn](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecandeletecolumn-property/llms-full.txt) property informs whether columns can be deleted.

### Syntax

```vbscript
TXTextControl.TableDeleteColumn
```

### Return Value

The method returns True if the table column could successfully be deleted. 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)
- [TableInsertColumn Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableinsertcolumn-method/llms-full.txt)
- [TableCanDeleteColumn Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecandeletecolumn-property/llms-full.txt)
- [Programming Category: Tables](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/tables/llms-full.txt)

---

## Nearby

- **Previous:** [TableDelete Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabledelete-method/llms-full.txt)
- **Next:** [TableDeleted Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabledeleted-event/llms-full.txt)
