Results 1 to 1 of 1

Macro for incorporating linear regression analysis

Threaded View

marcheese Macro for incorporating... 12-04-2014, 01:37 PM
  1. #1
    Registered User
    Join Date
    10-12-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    27

    Macro for incorporating linear regression analysis

    Hi all

    I'm currently working on a project where I am building a forecasting tool using historical sales data. I'm attempting to automate the regression analysis within the workbook and I am encountering the following error:

    Error message: "Regression - Input Y range missing. Please enter."

         Application.Run "ATPVBAEN.XLAM!Regress", , , False, False, , , False _
            , False, False, False, , False
        ActiveWindow.SmallScroll Down:=9
    When I run the regression in the data analysis tab, everything comes out fine, however, when I record my macro using the exact same steps, and attempt to duplicate the regression with the macro, it doesn't seem to work. My VBA knowledge is quite weak, so any guidance would be appreciated!

    Thanks
    Last edited by marcheese; 12-04-2014 at 05:19 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Linear Regression Analysis
    By HDLLC in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-19-2013, 01:30 PM
  2. Replies: 3
    Last Post: 03-06-2011, 01:38 PM
  3. 3-D Linear Regression
    By komonoway in forum Excel General
    Replies: 1
    Last Post: 03-06-2010, 06:37 PM
  4. Incorporating Data Analysis: Regression into a macro
    By elyse in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-10-2009, 12:45 PM
  5. Linear regression
    By Elhan in forum Excel General
    Replies: 1
    Last Post: 05-14-2007, 03:03 PM

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