The Excel REGISTER.ID function returns the register ID of a specified DLL or code resource that has been — or will be — registered for use with CALL. Like CALL, it is an advanced macro-era function that touches external code and is restricted in most modern, security-hardened Excel installations.
Syntax
| Argument | Description | |
|---|---|---|
module_text | Required | The name of the DLL or code resource that contains the procedure (for example "MyLib.dll" or a system library name). |
procedure | Required | The name — or ordinal number — of the procedure within that DLL. |
type_text | Optional | A text string describing the data types of the return value and the arguments the procedure expects. Needed when the procedure has not already been registered. |
How to use it
REGISTER.ID is the companion to CALL. Where CALL actually runs an external procedure, REGISTER.ID just hands back the register ID — the numeric handle Excel uses to identify a DLL procedure that has been registered (or that you are registering now). You then feed that ID to CALL.
If the procedure was already registered (often by REGISTER), you can call REGISTER.ID with just the module and procedure names to retrieve its existing ID without re-registering.
Same security caveats as CALL. REGISTER.ID is part of the external-code family, so it lives in XLLs and macro sheets rather than ordinary worksheet cells, and Trust Center / IT policy often disables it. Do not expect it to work as a casual worksheet formula.
For new work, register custom functions through VBA, a JavaScript Office Add-in, or an XLL built on Excel's C API rather than the REGISTER / REGISTER.ID / CALL trio.
Try it: interactive demo
Pick a REGISTER.ID example to see the formula and its result.
Practice workbook
Frequently asked questions
Is REGISTER.ID safe and usable in a normal worksheet?
Why does REGISTER.ID return an error?
type_text for a procedure that has not been registered yet, or use outside the XLL / macro-sheet context where it is allowed.Do I need an add-in to use REGISTER.ID?
What is the modern alternative to REGISTER.ID and CALL?
Master functions like this in one day
This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class