Advanced Excel Development, Training and Support

 
Products for Excel
Commercial Products
Spreadsheet Quality Products
Free Products
Spreadsheet Services
Spreadsheet Development
Spreadsheet Migration
Spreadsheet Maintenance
Spreadsheet Review
Spreadsheet Management
Excel Development
Excel Developer Types
Excel VBA
Excel and Databases
Excel and Pivot Tables
Excel Add-ins
Worksheet Functions
Excel and xlls
Excel (in)security
Excel testing
Excel and .net
Excel VBA IDE (editor)
Excel VBA Training
Professional Excel Development
Excel 2007
Resources
Consultant Profile
Book Reviews
Links
Other

Excel xll Add-in Development

There is considerable confusion about xlls, what they are and how to create them. This section aims to clear up some of the confusion and raise the profile of this important, but often over-looked technology.

What are xlls?

An xll is a type of Excel add-in. They can be used to add application level features such as new menus as well as application level worksheet functions.

If you search your install directory you will find many xlls that ship with Excel, such things as the Analysis Tool Pak is implemented as an xll (in every Excel version before Excel 2007).

Why use xlls?

The most obvious reason and their most compelling benefit is they are fast, very fast. For user defined functions nothing comes close for speed. They also have a very simple deployment story, they are a standalone file, need no registration or install, just double click and go. And actually their control over Excel is pretty much limitless, providing all the capabilities of XLA's or COM add-ins.

How do you create xlls?

Fundamentally an xll is just a renamed dll. They are native win32 fully compiled PE (Portable Executable) format executables. They also implement a specific set of methods that Excel can call as required. They can be created with any tool that can create native code dlls and that can implement the methods in a way Excel can understand. Roughly speaking that means C, C++ or Delphi, there are probably others but finding useful resource would be even more of a challenge than it is for C/C++.

How do xlls work?

An xll must provide several specific functions that Excel can call when it opens the xll file. In return Excel provides a set of functions that the xll can call to tell Excel all about itself, and the functions and commands it offers. Once the features of the xll have been registered with Excel they can be used just like intrinsic ones:

The most common use of xlls these days is for writing worksheet functions that calculate as fast as Excel native functions. Anyone who has written VBA worksheet functions knows how far off they are. xlls can also add menus and toolbars and perform commands like VBA subroutines. Their functionality is based on the old XLM macro language, which is still supported in Excel 2003 (and 2007).

 

If you require any more information please get in touch.

 
This page was last reviewed on July 31, 2007

©Codematic Ltd 1999-2007