Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Calling Analysis Toolpak.Regress (Regression)

From VBA in Outlook I instantiate and run a procedure in Excel and then Excel VBA calls "ATPVBAEN.XLAM!Regress"

I get error message "Run-time error 1004: Cannot run the macro ". The macro may not be available in this workbook or all macros may be disabled."


BUT, if I manually open the Excel workbook, the Excel VBA code and the ATP Regression runs perfectly.

The ATP reference is checked.
The two addins "Analysis ToolPak" and "Analysis ToolPak - VBA" are checked.


This may help: when it fails (from Outlook), I notice the Excel Data menu does not have the "Data Analysis" item. Yet, VBA thinks it is loaded.

Any help please???
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,182
Default Calling Analysis Toolpak.Regress (Regression)

From VBA in Outlook I instantiate and run a procedure in Excel

If you mean you are running/using an automated instance of Excel then
no addins will be loaded, and so any refs to the AnalysisToolpak will
result an error unless you load it before running your procedure!

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


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
Excel 2002 Analysis ToolPak Regression Analysis Help Requested MH Excel Worksheet Functions 1 February 28th 09 07:16 AM
Analysis Toolpak-Confidence Level and data analysis questions MH Excel Worksheet Functions 0 January 3rd 09 06:15 PM
Help - Calling Analysis Toolpak Functions from Outlook Macro Eddie McGlone[_2_] Excel Programming 2 August 14th 06 02:57 PM
Analysis ToolPak installed but no Data Analysis option Eric Stephens Excel Discussion (Misc queries) 3 February 2nd 05 09:17 PM
GCD & LCM: ANALYSIS TOOLPAK matt dunbar Excel Programming 4 July 24th 04 02:26 PM


All times are GMT +1. The time now is 08:11 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"