Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ABN ABN is offline
external usenet poster
 
Posts: 2
Default Calling an Excel Addin from VBA

Hi there,

Have an excel addin... written in C, that I want to call
from within VB.

Is this possible or is the only way to do it, to work
within excel... put a formula (part of the addin) into a
cell, calculate & extract.

Thanks
Fahad
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default Calling an Excel Addin from VBA

Fahad,

I don't think you can write an Excel addin in C, as my understanding that an
addin is always an Excel workbook, but the sheets are not shown. So within
an addin you can do anything you wish to Excel objects, either on one of the
sheets of the addin, or of another workbook.

What you can do is manipulate an Excel workbook from C using automation. In
this instance, you would need to create an Excel object and manipulate that.
This would typically be built as a DLL, and linked in to Excel by whoever
used Excel, or could be an executable that calls Excel directly.

--

HTH

Bob Phillips

"ABN" wrote in message
...
Hi there,

Have an excel addin... written in C, that I want to call
from within VB.

Is this possible or is the only way to do it, to work
within excel... put a formula (part of the addin) into a
cell, calculate & extract.

Thanks
Fahad



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 170
Default Calling an Excel Addin from VBA


"ABN" wrote in message
...
Hi there,

Have an excel addin... written in C, that I want to call
from within VB.


Almost certainly, but you may need to remap some of the
data as the data structures in C differ from those in VB

see

http://msdn.microsoft.com/library/de...lfunctions.asp


Keith


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
Calling a .net library from excel Keith Howard Excel Discussion (Misc queries) 0 March 8th 10 08:17 PM
Excel calling WCF service K. Wilder Excel Discussion (Misc queries) 0 February 25th 10 10:52 PM
calling a new function Excel gives me #NAME? Mark Dvorkin Excel Worksheet Functions 4 July 10th 05 01:29 AM
Calling an Excel Addin from VBA ABN Excel Programming 0 July 31st 03 02:02 PM
Calling a function from within EXCEL pcor[_2_] Excel Programming 3 July 18th 03 05:10 PM


All times are GMT +1. The time now is 02:50 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"