# ObjectGetFromUserId Method

> Returns the identifier of the object with a user identifier set through ObjectUserId, for use with ObjectCurrent; the first match is returned for duplicates.

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

---

Looks for the object with the specified user identifier. It must be an identifier previously set with the [ObjectUserId](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectuserid-property/llms-full.txt) property.

Introduced: 15.1.

### Syntax

```vbscript
TXTextControl.ObjectGetFromUserId ObjectUserId
```

### Parameters

| Parameter | Description |
|---|---|
| ObjectUserId | Specifies the user id of the object. |

### Return Value

The method returns the object's unique programming identifier. This identifier can be used with the [ObjectCurrent](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectcurrent-property/llms-full.txt) property to get or to alter the object's attributes.

### Data Types

| Name | Data type |
|---|---|
| ObjectUserId | Long |
| Return value | Integer |

### Remarks

If there are more than one object with the specified user identifier, the unique programming identifier of the first found object is returned.

### See Also

- [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:** [ObjectGetFromName Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectgetfromname-method/llms-full.txt)
- **Next:** [ObjectGethWnd Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectgethwnd-event/llms-full.txt)
