+ Reply to Thread
Results 1 to 4 of 4

Using the Regression function from within a Macro

  1. #1
    Forum Contributor
    Join Date
    08-14-2008
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    103

    Using the Regression function from within a Macro

    Hi,
    I am wanting to write a macro which uses the excel multiple regression function (a part of the data analysis add-in).

    I tried recording a macro while I selected the regression function (Tools> Data Analysis... etc.) which produced the following:

    Please Login or Register  to view this content.

    However when I try to use this macro again I get a message saying: Runtime error '1004': ATPVBAEN.XLA cannot be found.

    Any suggestions
    Last edited by HammerTime; 07-09-2009 at 06:49 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Using the Regression function from within a Macro

    have you activated the Analysis ToolPak - VBA in Tools -> Addins ?

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Using the Regression function from within a Macro

    Also in the VBE: Tools > References, tick atpvbaen.xls
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Contributor
    Join Date
    08-14-2008
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    103

    Re: Using the Regression function from within a Macro

    Hi guys, no I had not done either of those things.

    But now that I have done them it works fine!

    Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1