Calling Analysis ToolPak From VBA 2003 & 2007

mosta

Board Regular
Joined
Jun 5, 2008
Messages
56
I know there have been threads on this, but I have not found any that comprehensively compare and reconcile practices for Excel 2003 and 2007. What I think I have found is:

In 2003, I can call eomonth and workday, for example functions, either unqualified, or qualified with [atpvbaen.xls].

In 2007, to call eomonth or workday I have to qualify with Application (or maybe WorksheetFunction, together or alone). I get errors when unqualified or when qualified with the file name in braces.

I have tried various combinations of the Analysis Tool Pak - VBA addin, and either reference to the Office 11 or to the Office 12 folder, to get 2007 to work like 2003 does. So far no luck.

I don't think I want to call with the Evaluate function. That seem round about.

Does that leave Application.Run, which is a bit big and awkward, as the only way to code these functions that works in both 2003 and 2007?
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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