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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

axg275

Active Member
Joined
Oct 5, 2004
Messages
308
=terp(xval, xvalarray, yvalarray) its a function that does interpalation that someone wrote and i think its sitting in an addin somewhere
 
Upvote 0

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,358
Office Version
  1. 365
Platform
  1. Windows
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

mikerickson

MrExcel MVP
Joined
Jan 15, 2007
Messages
24,348
Have you (while in the VBE) used EDIT>FIND "Function terp" to search the VBProject?
 
Upvote 0

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
40,367
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
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

mikerickson

MrExcel MVP
Joined
Jan 15, 2007
Messages
24,348
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

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
40,367
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
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,190,827
Messages
5,983,121
Members
439,825
Latest member
glen3265

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
Top