Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using a "Data Analysis" add-in function in a macro


I've been trying to create a macro that runs the "Rank and Percentile
function included in the "Data Analysis" add-in. However, every time
run the macro I get an error message saying:

Run-time error '1004':

'ATPVBAEN.XLA' could not be found. Check the spelling of the fil
name, and verify that the file location is correct.

If you are trying to open the file from your list of most recently use
files on the File menu, make sure that the file has not been renamed
moved, or deleted.


- The macro is stored in the same workbook that has the data I'm tryin
to run the analysis on.

- My version of Excel is whatever comes with Office XP Pro, I thin
Excel 2002.

Any help is appreciated

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Using a "Data Analysis" add-in function in a macro

go into Tools=Addins and select Analysis Tookpak - VBA

this should load ATPVBAEN.XLA

Then you have to use Application.run to run the code, or create a reference
from you workbook to ATPVBAEN.xla and then you can call it like a native
function (not worksheet function, like a vba function).

--
Regards,
Tom Ogilvy

hawkeyes2002 wrote in message
...

I've been trying to create a macro that runs the "Rank and Percentile"
function included in the "Data Analysis" add-in. However, every time I
run the macro I get an error message saying:

Run-time error '1004':

'ATPVBAEN.XLA' could not be found. Check the spelling of the file
name, and verify that the file location is correct.

If you are trying to open the file from your list of most recently used
files on the File menu, make sure that the file has not been renamed,
moved, or deleted.


- The macro is stored in the same workbook that has the data I'm trying
to run the analysis on.

- My version of Excel is whatever comes with Office XP Pro, I think
Excel 2002.

Any help is appreciated.


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Text "comparison" operator for "contains" used in an "IF" Function Pawaso Excel Worksheet Functions 4 April 4th 23 11:35 AM
Where did my "Analysis Group" under Data tab go?!?!? georgef Excel Discussion (Misc queries) 1 June 5th 08 12:51 AM
adding "Data Analysis" to my Excel Mirna S Excel Worksheet Functions 2 August 29th 06 05:05 PM
Macro to concatenate into "B1" B2 thru B"x" based on new data in "Col A" Dennis Excel Discussion (Misc queries) 0 July 17th 06 02:38 PM
Excel 95 had a "data analysis" option, how can I access on XP? Jana Excel Discussion (Misc queries) 2 February 7th 06 12:58 AM


All times are GMT +1. The time now is 06:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"