Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default C# (sharp) and Excel

I am learning some C# and I wonder if I can create dll fiels to be
used in Excel. I saw others post on DLL and tried out a few things
but was not able to make it work. They are al financial functions.

I did:

Go to Excel and declare the functions and also load them up as a
reference.


BUt it did not work.

any help would be appreciate it.

System info

p4 2 gigz
512 ram
Windows XP
Excel 2000
Visual Studio.NET
Microsoft Developement Environment 2002 V 7.0.9466

regards,

Ludwig
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default C# (sharp) and Excel

Hi Ludwig,

I am learning some C# and I wonder if I can create dll fiels to be
used in Excel. I saw others post on DLL and tried out a few things
but was not able to make it work. They are al financial functions.

I did:

Go to Excel and declare the functions and also load them up as a
reference.

BUt it did not work.

any help would be appreciate it.


Really the only way to do it is to expose your functions in a COM
Class, then use those from Excel (by adding a reference to that class
and Tools References or using 'Automation Addins'). If you search
the .Net help for "COM Class" (no quotes), you should see a C# example
of both client and server. Once you've built that, search again for
'Automation Addin' and you should find an example of how to use it in
Excel.

Regards

Stephen Bullen
Microsoft MVP - Excel
www.BMSLtd.co.uk

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sharp Aquos Hdtv [email protected] Charts and Charting in Excel 0 May 17th 09 12:16 PM
My toolbar icons are fuzzy, how do I make them sharp? DSchulz5 Excel Discussion (Misc queries) 5 February 21st 05 10:51 PM


All times are GMT +1. The time now is 09:38 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"