xlladdins.com

If you are an Excel power user please have a look at https://xlladdins.com. It is still in early stages so any feedback will be appreciated. Currently there are add-ins for the C/C++ math library and Windows registry. The add-ins are signed but until I scrape up enough nickels for an EV (“Expensive Validation”) CA you will still see warnings when opening them in Excel. Who says money can’t buy you friends?

If that makes you nervous then you can build everything from source for yourself using the free version of Visual Studio. It should be as simple as cloning the repository in VS and hitting F5. Let me know if that does not work for you.

The xll_math library uses a python script to scrape the documentation from web pages and generate C++ code. I work hard to be lazy. The xll_registry library scratches an itch that I am surprised nobody else has scratched. Even VBA does not come equipped with this functionality.

20 thoughts on “xlladdins.com

  1. This is probably one of the best pieces of support software that I have come across. Brilliant work! And it answers probably 100 questions posed on Stackoverflow as to how best to integrate C++ with Excel. Only reason that it doesn’t answer more SO questions is that it is only for Windows 😉 Sorry Mac and Linux crew.

    One request: have an option for MyArray to return a horizontal array to Excel, rather than only a vertical array. Most (of my actuarial) cashflow based work is member-based and is horizontal.

    Am still messing around with it. Will definitely give more feedback as I work through it.

    1. Hi Kalx,
      please see at line 361(xll_range) .
      my question is: Why don’t you use OPER instead of XLOPERX, there are quite a few datatypes and they distract me.
      Is there any difference there? please clarify this..

  2. Hi,I have 2nd question:
    at line 406: we have: o = range_drop(*pr, n);
    Does passing this parameter need to be reference? or should I keep the pointer:
    I meant:
    o = range_drop(pr, n);
    inline XLOPERX range_take(LPOPER x1, long i) //<– or XLOPERX&
    {
    XLOPERX x=*x1;

    }
    I mean performance effect?

  3. Hi Kalx,
    When I declare the code
    static xll::FPX o1(rows,cols); o1 does not resize itself on the 2nd call.
    can you fix it instead of using o1.resize?
    also I have a jagged 2D double vector.
    how should i use the code to declare o1 with all elements initialized to =0.0 so I can end loop early.
    a little bit of my stupid laziness !

    1. Static variables are only constructed once.
      The FP datatype does not handle jagged arrays.
      Use memset or std::fill to set memory.

  4. Hi Kalx,
    When I click on the develope->addin tab and deactivate it however the intellisense function still works.
    Is it possible to turn it off?

  5. Hi,
    How do i check the number of rows and columns returned from vector is out of bounds (eg xls ~65k and xlsx 1millions)
    i found this but sample code can’t compile them in my functions.

    ensure(r <= (unsigned)(std::numeric_limits::max)());
    ensure(c <= (unsigned)(std::numeric_limits::max)());

  6. Hi Kalx,
    Thanks you. Turns out I got it wrong, it returned the datatype limit.
    I’ll probably need to find something like app.rows.count or app.sheet(0).rows.count
    How should I approach it?

  7. Hi Kalx,
    When I use the LPOPER parameter to get a reference of rectang (ex: “B2:C3”), the sref value returns the wrong lastcolumn value.
    Is this by design?

  8. Hi, Ok.
    I think it is possible to extend the LPOPER parameter so it returns a sref containing colfirst,last/rowf,rowl to help locate its address as well as sheetID information to know which sheet the reference area is from. may be useful for later functions.
    for example B2:E3 rowf=1/colf=1/rowl=2/coll=4

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s