# TargetInsert Method

> Inserts a named link target or bookmark at the current text input position, optionally deletable by the end user, and returns its identifier.

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

---

This method inserts a new link target or bookmark in the text at the current text input position.

Introduced: 28.0.

### Syntax

```vbscript
TXTextControl.TargetInsert TargetName, Deleteable
```

### Parameters

| Parameter | Description |
|---|---|
| TargetName | Specifies the name of the target. |
| Deleteable | When set to True, the target can be deleted through the end-user during editing the document. Otherwise the target is protected. |

### Return Value

| Value | Description |
|---|---|
| 0 | An error has occurred. |
| otherwise | The target's internal unique identifier. |

### Data Types

| Name | Data type |
|---|---|
| TargetName | String |
| Deleteable | Boolean |
| Return value | Long |

### See Also

- [Marked Text Fields](https://docs.textcontrol.com/tx-text-control-activex/document-editor/fields/llms-full.txt)
- [TargetDelete Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetdelete-method/llms-full.txt)
- [TargetGoto Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetgoto-method/llms-full.txt)
- [Programming Category: Hypertext Links](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/hypertext-links/llms-full.txt)

---

## Nearby

- **Previous:** [TargetGoto Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetgoto-method/llms-full.txt)
- **Next:** [TargetName Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetname-property/llms-full.txt)
