Consulting

Results 1 to 17 of 17

Thread: VBA to run a Linear Regression Automatically

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ok I'll take out the X3 part. Why not use the lrE where it says:
    Application.Run "ATPVBAEN.XLAM!Regress", ActiveSheet.Range("F1:F" & lr), ActiveSheet.Range("A1:A" & lrE),
    I want the range to run A1 over to column E and down the last row. So my X range would be A1:last row of E. I don't have that right there?

    Also - is there anyway to have the macro press the ok on a prompt that comes up after I run this? What's happening is I'm overwriting a the ANOVA summary table that comes up when the macro pastes the ANOVA table in cell P1, which is exactly what I want it to do, however Excel always asks me if this is ok in a dialogue box.

    Thanks for the continued advice! I know this isn't the first one you've helped me on!
    Last edited by nirvehex; 02-24-2016 at 07:17 PM. Reason: additional question

Posting Permissions

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