"Roger That" wrote in message
> Peter,
>
> Thanks for the replies. I developed the XLA add-in using Excel 2000 and
> it works on Excel 2000-2007 but I need to take advantage of the Ribbon in
> Excel 2007 which is the second reason for porting this to a DLL (first being
> code security).
You should be able to use the Ribbon without having to port to a DLL
> > > You didn't say if you intend to make a dll to be called by an xla wrapper,
> > > or a ComAddin.
>
> I guess I don't know what the difference is between using an XLA wrapper
> vs a COM add-in.
You NEED to know the difference, all explained in the book. You might
consider developing the dll as a normal dll with an xla/s wrapper as step
through and debugging is a bit easier. Then add the COM interface and
convert to a ComAddin. The compiled dll can be both a ComAddin and a normal
dll if it has the appropriate classes. I know you are only catering for
XL2000+ but if you (other readers) needed to cater for XL97 it can't be a
ComAddin in that version
> I was just hoping to have all of the code ported from the
> original XLA into a DLL
Sounds like you will want the dll to be a ComAddin.
> with the exception of user preferences stored on the
> XLA worksheets and the code for generating/configuring the menubar/commandbar
> items and wanted to know if that was possible before attempting it.
I think I know what you have but for your ComAddin menus best forget about
storing your commandbar details in cells and port all to the VB dll.
Other user prefernces can be stored either in the registry or an ini file.
> I guess
> I am most concerned about how to handle the global variable that takes care
> of the connection to the web service - initially that would be the most
> important part.
I don't know anything about that but I suspect very doable in the dll.
Regards,
Peter T
Roger That - 29 May 2008 19:19 GMT
Peter,
> You should be able to use the Ribbon without having to port to a DLL
I am not sure about using the Ribbon without writing an XLAM/XML interface
for it (http://msdn.microsoft.com/en-us/library/bb410116.aspx).
> You NEED to know the difference, all explained in the book. You might
> consider developing the dll as a normal dll with an xla/s wrapper as step
> through and debugging is a bit easier.
That's probably a good place to start (for me anyway). I guess some
examples of when to use which one would help.
> I think I know what you have but for your ComAddin menus best forget about
> storing your commandbar details in cells and port all to the VB dll.
All the commandbar/menubar information is in code, not on the XLA worksheet.
> Other user preferences can be stored either in the registry or an ini file.
I am trying to avoid both of these as some of the information stored is
encrypted/hashed login information which I would prefer to keep hidden.
Thanks again,
Roger