Consulting

Results 1 to 4 of 4

Thread: Help converting Addin to library...

  1. #1

    Question Help converting Addin to library...

    Hi All.

    We have an excel addin here *.xla that has some hugely useful functions in for us such as complex number processing.

    This capability has been removed in VB.NET therefore I want to take a module I have in the xla and somehow compile that into a dll so that we can publish these functions into sonething we can hook into using vb.NET.

    My question therfore is...

    How do you take a module in VBA, and compile it into a library. Secondary I guess is how do you make the functions public so they can be called by another application?

    Cheers

    Chris

  2. #2
    Moderator VBAX Guru Ken Puls's Avatar
    Joined
    Aug 2004
    Location
    Nanaimo, BC, Canada
    Posts
    4,001
    Location
    So far as I'm aware, (although I could be corrected,) xll files are written in one of the flavours of C, not VB.

    Here's a link from MS: How To Build an Add-in (XLL) for Excel Using Visual C++
    Ken Puls, CMA - Microsoft MVP (Excel)
    I hate it when my computer does what I tell it to, and not what I want it to.

    Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar

    This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!

    Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!





  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    How about a simple DLL that can be called from the XLA?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4
    VBAX Master
    Joined
    Jun 2007
    Location
    East Sussex
    Posts
    1,110
    Location
    To compile into a dll, you could use a copy of VB6 or Office Developer (depending on Office version) and it should be fairly painless. You could of course also rewrite it in .Net
    Regards,
    Rory

    Microsoft MVP - Excel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •