Calling Analysis Add-in Funciton in VB

  • Thread starter Thread starter rvalente
  • Start date Start date
R

rvalente

I wrote a macro which needs to call the yieldmat financial function fro
excel but for some reason it just doesn't seem to be recognizing it an
I get an error. In general how do you call an add-in function from th
vb environmen
 
Hi
Set a reference to the Analysis toolpak, APTVBAEN.XLA and then simply
call the functions like
x = yieldmat(...)
 
Hi rvalente!

Set a reference to the Analysis toolpak add-in in the VBA Editor using

Tools > References.
Check "atpvbaen.xls"

If you don't see it in the list you need to go back to Excel and use:

Tools > Addins
Check "Analysis ToolPak - VBA"
Now back to the VBE and
Tools > References
Check "atpvbaen.xls"

After this you just use the functions in your VBA code


--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top