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:
Thanks, Steve
I usually use below as I have to loan/unload xla multiple times during excel session. Let me know if it works for you:
AddIns.Add Filename:= "C:\test\1.XLL"
AddIns("Pricer Add-In").Installed = False
AddIns.Add Filename:= "C:\test\Arbitrage.XLL"
AddIns("Pricer Add-In").Installed = True
you have to make sure that filepath and name of the addin match. To check the name of the addin, go to Tools -> Addin.
you can also use "Record Macro" feature and start recording and disable/enable the addin/xll from Tools -> Addin. Good luck
Adding a bit to the above answer.
1) You can register a dll in Tools/Addins in versions before 2007, after 2007 you need to press addins from the developer tab or go to the Add-Ins tab on the Excel options page and press Go after Manage - Excel Add-ins. From either of those places you can browse to a file and that will automatically register it.
2) as above, unselecting the check box unloads the add-in from excel. You do not need to reregister each time you build as long as the dll is in the same place.
3) Yes any 64 bit xlls must be compiled for 64 bit
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With