Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default macro's and data analysis add in problems

Help.
I am trying to do the Ttest in the data analysis pak. I have a command
button that calls the following macro.

Sub Ttest()
'
' Ttest Macro
'
AddIns("Analysis ToolPak").Installed = True
AddIns("Analysis ToolPak - VBA").Installed = True
Application.Run "ATPVBAEN.XLA!Pttestm",
ActiveSheet.Range("$D$52:$D$72"), ActiveSheet.Range("$E$52:$E$72"), "Ttest",
True, 0.05, 0
Cells.Select
Selection.Columns.AutoFit
Range("D3").Select
End Sub

When it executes it generates an error report to send to Microsoft.
I have the data analysis add in's checkmarked; and in references the
ATPVBAEN is checkmarked as well.
When I try and record the same macro over, I select from the Tool bar -
Tools/Data analysis/Ttest/ttest-two sample assuming unequal. The next screen
comes up, but if you select the grid from this menu so you can select the
range, and click in the cell you want, the select dots are over two cells. I
have tried this on another PC with the same loads of excel (latest 2003 with
sp1) it works fine.
So, I am at a loss as to how to fix this error, or is it the PC and will
have to rebuild.
I have deinstalled Office 2003 and reinstalled with the latest upgrades.

Thanks in advance for any help


--
mlowe
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
Analysis Toolpak-Confidence Level and data analysis questions MH Excel Worksheet Functions 0 January 3rd 09 06:15 PM
Hide Macro's in Toolbar / Macro's list sparx Excel Discussion (Misc queries) 2 May 6th 06 08:53 PM
Why " data analysis plus " override " data analysis " once instal. Alfred H K Yip Excel Worksheet Functions 1 March 20th 05 08:10 AM
Analysis ToolPak installed but no Data Analysis option Eric Stephens Excel Discussion (Misc queries) 3 February 2nd 05 09:17 PM
Problems Loading Analysis ToolPak when automating from Visual Basic wikamto Excel Programming 3 July 30th 03 02:18 AM


All times are GMT +1. The time now is 12:09 PM.

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"