# ObjectName Property

> Sets or returns a name for the current image, text frame, signature field or OLE object, replacing an existing name; ObjectGetFromName finds the object by it.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > ObjectName Property
- **146 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectname-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectname-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectname-property/llms-full.txt

---

Defines a name for an image, text frame, signature field or OLE object. If a name already exists, the old name is deleted. The [ObjectCurrent](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectcurrent-property/llms-full.txt) property determines the object which name is set.

Introduced: 15.1.

### Syntax

```vbscript
TXTextControl.ObjectName [= string]
```

### Data Types

String.

### Limitations

Run time only.

### See Also

- [ObjectCurrent Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectcurrent-property/llms-full.txt)
- [Programming Category: Images, Text Frames, Signature Fields and OLE Objects](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/images-objects/llms-full.txt)

---

## Nearby

- **Previous:** [ObjectMoved Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectmoved-event/llms-full.txt)
- **Next:** [ObjectNext Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectnext-method/llms-full.txt)
