Practice free

CALL function

CALL runs a routine stored in a DLL or code resource from an old-style macro sheet. It is a legacy function that is rarely used today.

Example

=CALL("Kernel32","GetTickCount","J")

Expected result: n/a Not yet checked in desktop Excel

Syntax

CALL(register_id, [argument1], ...)

Arguments in [square brackets] are optional.

register_id (required)
ID returned by REGISTER.ID, or the DLL name when using the long form.
argument1 (optional)
Values passed to the external routine.

Returns: Whatever the called routine returns.

Watch out for

  • Can crash Excel if the argument types are wrong.
  • Typically disabled by security settings.

Where it works

Excel
CALL is in every version of Excel from 2007 on. Legacy Excel 4 macro function: works only on macro sheets and in a few contexts, Windows only, and is blocked in many secure setups.
Google Sheets
No direct equivalent. Use Apps Script custom functions instead.

Part of Add-in and automation functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .