A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Recordin Regression as a Macro



 
 
Thread Tools Display Modes
  #1  
Old October 31st, 2005, 06:30 AM
psychotic psychotic is offline
Member
 
First recorded activity by OfficeFrustration: Oct 2005
Posts: 2
Default Recordin Regression as a Macro

Hi,

I cant seem to record a regression as a macro and apply it to a "button"...

Wat i did:
Started "Record New Macro", started "Relative Referencing"...
den i went to "Data Analysis", "Regression"
Entered the X & Y input values using "Ctrl, Shift, Down"
"Stop Recording"
Applied to "button"

but, it showed "run-time error 1004"
ATPVBAEN.XLA could not be found.

can someone help mi?

went to editor and tis is as follows:

Sub Macro2()
'
' Macro2 Macro
' Macro recorded 10/31/2005 by Psychotic
'

'
Application.Run "ATPVBAEN.XLA!Regress", , , False, True, , , False, _
False, False, False, , False
ActiveWindow.SmallScroll Down:=-30
End Sub
  #2  
Old October 31st, 2005, 06:41 AM
psychotic psychotic is offline
Member
 
First recorded activity by OfficeFrustration: Oct 2005
Posts: 2
Default

Hi,

i juz realised tat i need to install the add-in: Analysis ToolPak-VBA

However, i encountered another problem... it said "input Y range missing. pls enter".

Ani help? did i do sumtink wrong when recording the macro?
  #3  
Old October 31st, 2005, 09:56 AM
macropod
external usenet poster
 
Posts: n/a
Default Recordin Regression as a Macro

Maybe you should post this in an Excel vba Forum ...


"psychotic" wrote in message
news

Hi,

i juz realised tat i need to install the add-in: Analysis ToolPak-VBA

However, i encountered another problem... it said "input Y range
missing. pls enter".

Ani help? did i do sumtink wrong when recording the macro?


--
psychotic


  #4  
Old October 31st, 2005, 03:14 PM
Stan Brown
external usenet poster
 
Posts: n/a
Default Recordin Regression as a Macro

Mon, 31 Oct 2005 06:41:21 +0000 from psychotic
:
i juz realised tat i need to install the add-in: Analysis ToolPak-VBA


_And_ you need to use Excel. This is a MS Word newsgroup. :-)

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
"If there's one thing I know, it's men. I ought to: it's
been my life work." -- Marie Dressler, in /Dinner at Eight/
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro Button Won't Stay on Toolbar caleb General Discussion 2 June 14th, 2005 11:59 PM
Playing a macro from another workbook Jim General Discussion 1 February 23rd, 2005 10:12 PM
Keyboard Shortcut Only Runs Part of the Macro Jonnyboy117 General Discussion 2 July 14th, 2004 08:27 PM
Need Entry Point 18 Help On Access Executable File Jeff Conrad General Discussion 26 July 14th, 2004 06:00 AM
Macro when a font in a range changes whisperinghill General Discussion 0 June 14th, 2004 07:21 PM


All times are GMT +1. The time now is 12:01 AM.


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