xll

How to add options hyperlink into Excel Function Arguments Window just like bloomberg's BDH function?

爱⌒轻易说出口 提交于 2019-12-06 11:00:56
问题 I have developed a excel UDF. One of the UDF parameters has known possible values (A, B, C). So instead of asking all my users to find out what the possible values are I want to provide a option1 (hyperlink) in excel function wizard just like the Bloomberg's BDH function as shown in the screenshot. I know I have to somehow hook upto win32 api and override the call/window when the function wizard is invoked. When I look into SPY++ I see that there is a insert function window and function

“addin.XLL is in a different format” issue, cannot open the xll I created by myself

落爺英雄遲暮 提交于 2019-12-06 03:56:50
I wrote a very simple xll file in VC++ 2010, and the Excel I am using is Excel 2007. The library contains only one function: extern "C" LPXLOPER12 WINAPI tsMkErr() { static XLOPER12 x; x.xltype = xltypeErr; x.val.err = xlerrNull; return &x; } and the necessary xlAutoOpen function. I compiled and dll file, change the name to xll, and double click it to open in Excel. Everything works just as I expected. However, if I am trying to open this file on another PC, the Excel just keeps telling me that: The file you are trying to open, '.xll', is in a different format than specified by the file

Unregister a XLL in Excel (VBA)

让人想犯罪 __ 提交于 2019-12-05 02:27:45
I am just discovering the world of programming XLLs for Excel using XLW under Visual C++ 2010 and everything has been smooth so far using the template provided with the XLW package, I have a few questions: I found out that I can register an XLL by double-clicking it. What other ways are there, especially from VBA or the Excel menu? How can I unregister an XLL, both via the Excel GUI and VBA? I assume this has to be done each time I rebuild the Xll under Visual Studio. Does Excel 2010 64-bit require XLLs compiled and linked for 64-bit? Thanks, Steve I usually use below as I have to loan/unload

How to return XLOPER (Excel Variable) to VBA directly from a c++ dll?

爷,独闯天下 提交于 2019-12-04 22:07:16
I have no idea how to handle XLOPER type variable in VBA. There are plenty of web pages explaining the relationship between Xloper variable , c++ DLL and XLL add-in, however i need to write c++ function in a dll returning a xloper directly to VBA without XLL framework. (No need of User Defined Function since functions from the dll will be called by the VBA code - not by Excel users). Indeed i'm coding a Excel VSTO and i need to call c++ code from it. I found that xloper variable are very useful for XLL so i would like to use this variable type in VBA/VB.Net directly. So is it possible? my

How to add options hyperlink into Excel Function Arguments Window just like bloomberg's BDH function?

痴心易碎 提交于 2019-12-04 16:15:21
I have developed a excel UDF. One of the UDF parameters has known possible values (A, B, C). So instead of asking all my users to find out what the possible values are I want to provide a option1 (hyperlink) in excel function wizard just like the Bloomberg's BDH function as shown in the screenshot. I know I have to somehow hook upto win32 api and override the call/window when the function wizard is invoked. When I look into SPY++ I see that there is a insert function window and function arguments window . I have broken down the task at hand into 4 sub tasks: Subclass the window “Function

How to return an array from an XLL UDF

柔情痞子 提交于 2019-12-04 11:37:30
I'm trying to write an array constructor for Excel as a worksheet function using the C API. Goal: =array_cons(1, 2, 3) => {1, 2, 3} However, I am not initializing the XLOPER12 correctly. In Excel, my function currently returns #NUM . I am taking the argument list and packing it into a vargs array via macros then trying to return the part of the array that was supplied. #include <windows.h> #include <xlcall.h> #include <framewrk.h> #include <boost/preprocessor.hpp> #define VARG_COUNT 250 #define VARG_FORMAT(Z, A, B) B##A, #define VARG_DEF_LIST(N) BOOST_PP_REPEAT(N, VARG_FORMAT, LPXLOPER12 varg)

Basic of XLL Excel Addin - Need to invoke a C# API from Excel [closed]

大兔子大兔子 提交于 2019-12-04 06:13:56
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I am quite new to creating excel addins. Earlier I used to create a tlb for .NET libraries. I used to make my .NET class COMVISIBLE and create a Com callable wrapper and register as a tlb to call from Excel (using regasm). I now have a math library written in C#. Got to know there

XLL Excel addin in unmanaged C++

霸气de小男生 提交于 2019-12-03 11:15:32
I have a few mathematical simulations in unmanaged C++ and now I need to integrate them with Excel (so that it is possible to call the functions from Excel and get the values back). I don't want to use any VBA, so I guess I have to implement an XLL addin. I would like to use as few third party additional frameworks as possible. Could someone point me to a good tutorial? Starting out with the SDK can be a bit unpleasant. I'd suggest you try one of the toolkits: XLW ( http://xlw.sourceforge.net/ ) is a standard open-source C/C++ wrapper. Keith Lewis's NXLL library ( http://nxll.codeplex.com/ )

How to deploy an Excel XLL Add-In and automatically register the Add-In in Excel

只愿长相守 提交于 2019-12-03 06:22:48
问题 I have developed an Excel XLL using ExcelDNA and C#. I am at the point where I would like to begin testing the deployment, but cannot find much information that actually provides steps that work. My project was developed as a Class library with ExcelDna references. In the .dna file, I have the code below that will pack all resources into a packed version of the XLL (i.e. the Pack="true" attribute). <DnaLibrary Name="ExcelXLL" RuntimeVersion="v4.0" Language="C#"> <ExternalLibrary Path=

How to deploy an Excel XLL Add-In and automatically register the Add-In in Excel

…衆ロ難τιáo~ 提交于 2019-12-02 19:45:58
I have developed an Excel XLL using ExcelDNA and C#. I am at the point where I would like to begin testing the deployment, but cannot find much information that actually provides steps that work. My project was developed as a Class library with ExcelDna references. In the .dna file, I have the code below that will pack all resources into a packed version of the XLL (i.e. the Pack="true" attribute). <DnaLibrary Name="ExcelXLL" RuntimeVersion="v4.0" Language="C#"> <ExternalLibrary Path="ExcelXLL.dll" LoadFromBytes="false" Pack="true" /> I would like to deploy the packed XLL to the target machine