Can you give me some pointers to sharing code?
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
Let me first say, I’m interested in Excel and its programming capabilities and not VBA.
<o></o>
Taking a very simple example, let’s say I have a function Add2 that I wish to make available to who ever wants to call it. So I create Add2.xls which has A1 : 0, A2 : 0 and A3 : =IF(A1=0,"Error",(IF(A2=0,"Error",(A1+A2)))) .
<o></o>
I can’t think how to ‘call’ Add2 from my application. I can get the value from A3 but I can’t put my values into A1 and A2. I assume therefore I have to copy Add2 into my application. However when I do that, it retains references to Add2 rather than my spreadsheet.
<o></o>
I know this is a very basic question but I haven’t seen anything that talks about code re-use unless it is either VBA or someone trying to extend Excel in some hypothetical way.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
Let me first say, I’m interested in Excel and its programming capabilities and not VBA.
<o></o>
Taking a very simple example, let’s say I have a function Add2 that I wish to make available to who ever wants to call it. So I create Add2.xls which has A1 : 0, A2 : 0 and A3 : =IF(A1=0,"Error",(IF(A2=0,"Error",(A1+A2)))) .
<o></o>
I can’t think how to ‘call’ Add2 from my application. I can get the value from A3 but I can’t put my values into A1 and A2. I assume therefore I have to copy Add2 into my application. However when I do that, it retains references to Add2 rather than my spreadsheet.
<o></o>
I know this is a very basic question but I haven’t seen anything that talks about code re-use unless it is either VBA or someone trying to extend Excel in some hypothetical way.