I am trying to use the regression tool from the Analysis Toolpak to run a bunch of regressions. I have everything set up and the code seems to be fine but when I try to run it I get the following error:
Run-time error '1004':
Cannot run the macro". The macro may not be available in this workbook or all macros may be disabled.
Note that none of the above is a typo. If I hit debug it highlights the following in my code:
I have checked to ensure that I have added atpvbaen.xls in my available references.
I have checked to ensure that all macros are enabled.
Run-time error '1004':
Cannot run the macro". The macro may not be available in this workbook or all macros may be disabled.
Note that none of the above is a typo. If I hit debug it highlights the following in my code:
Code:
Application.Run "ATPVBAEN.XLAM!Regress", Range("CF2:CF10"), Range("CE2:CE10"), False, False, , _
ActiveSheet.Range("$CG$1"), False, False, False, False, , False
I have checked to ensure that I have added atpvbaen.xls in my available references.
I have checked to ensure that all macros are enabled.