Getting Started

There are three possible ways of calling your C code from Microsoft Excel:

There is a difference between user-defined functions, which simply compute values based on their parameters and return the values, and user-defined commands, which actually perform actions. The following section describes calling DLLs from Microsoft Excel. For information on calling Microsoft Excel from your add-ins, see "Calling Microsoft Excel from C" on page 150.

Note

Writing DLLs is slightly more complex than writing normal Windows code, which in turn is more complex than writing normal C programs. Make sure you understand both before you begin.