finding the function

axg275

Active Member
Joined
Oct 5, 2004
Messages
308
Hello,

I have a function that i use in excel. I now want to find the function so I can use it in VBA but the problem is that I cant find it where it is. It works in excel but not in the VBA editor. Is there a way to find this function and were it is?

Thanks
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
=terp(xval, xvalarray, yvalarray) its a function that does interpalation that someone wrote and i think its sitting in an addin somewhere
 
Upvote 0
Well if it's part of an add-in I'm not 100% sure how you could access it in VBA.

I know you can access functions from the Analysis Tool-Pak by setting certain references.

But that's a 'standard' add-in.:)
 
Upvote 0
If it's in an add-in then you ought to be able to work it out by disabling your installed add-ins one by one until the formula gives you a #NAME error in the worksheet. (I am guessing that the add-in may be protected in which case you can't search through its code)
 
Upvote 0
Code:
Function myWorkAround (xval, xvalarray, yvalarray) as Variant
Rem works only from VBA
    Range("A1").Formula = "=terp(" & xval & "," & xvalarray & "," & yvalarray & ")"
    myWorkAround = Range("A1").Value
End Function
 
Upvote 0
In fact, if you know the add-in is loaded, you can use it within the Evaluate method in code.
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,517
Members
449,088
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top