Leading the way in Microsoft Office Development
 Home|Excel|Word|PowerPoint|Consultancy|Feedback|Contact 
 Microsoft Excel > Functions > External > CALL

 

CALL(register_id, argument [,argument2] [,…])

 
 

CALL(module_text, procedure, type_text, argument1 [,argument2] [,…])

 
 Returns the results from a procedure in a DLL or code resource.

 register_idThe value returned from a REGISTER or REGISTER.ID function.
 argument1The first argument to be passed to the procedure.
 argument2The optional second argument to be passed to the procedure.
 module_textThe name of the DLL that contains the procedure (for Windows).
 file_textThe name of the file that contains the code resource (for Macintosh).
 procedureThe name of the procedure in the DLL (for Windows).
 resourceThe name of the code resource (for Macintosh).
 type_textThe text string specifying the data type of the return value.

 REMARKS
 
  • You can also use the ordinal value of the function from the EXPORTS statement in the module-definition file (.DEF). The ordinal value must not be in the form of text.
     
  • You can also use the resource ID number. The resource ID number must not be in the form of text.
     
  • The "type_text" also lists the data types of all arguments to the DLL or code resource.
     
  • The first letter of type_text specifies the return value. The codes you use for type_text are described in detail in Using the CALL and REGISTER Functions.
     
  • The "type_text" argument is not needed for stand-alone DLLs or code resources (XLLs).
     
  • You can have a maximum of ?? Arguments.

     EXAMPLES
     
     A
    1=CALL("Kernel32","GetTickCount","J!") = False
    2=CALL("Msvcrt40","_strrev","1F","String to be reversed") = False
     

     Functions - C | Index - C | Office Online 

     Copyright © 2004-2007 Better Solutions Limited. All Rights Reserved.Top