Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I get an Excel function to run with a Macro

Status
Not open for further replies.

RFeniuk

Technical User
May 7, 2003
20
IN
I am trying to set up a button in excel that will automatically run a T-Test on a given set of data. How do I write the code for this in VBA. I am using Excel 97.

I have my data in 2 columns which are named "Operator1" & "Operator2"

I want the T-Test results to go to Cell A67

Can some one help me?
 
Have you tried the macro recorder ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Recording a macro gives this:

Application.Run "ATPVBAEN.XLA!Pttestm", , , ActiveSheet.Range("$M$14"), _
False, 0.05

It recorded my output range but not my input ranges.

You may need to search MSDN to find out the correct arguments.


HTH

Graeme
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top