Hi, so what I'm trying to do is run a regression for every 5 cells of data, copy a value and paste it and repeat for 1000cells. I tried making a Macro but it just regresses the exact 5cells I used. I want to make it so that i can keep applying the task for the next 5 cells for the macro, or apply the task to the 5 cells I am currently selecting.
this is the code i have from the macro
Sub test()
'
' test Macro
' test
'
' Keyboard Shortcut: Ctrl+t
'
Application.Run "ATPVBAEN.XLAM!Regress", ActiveSheet.Range("$B$257:$B$261") _
, ActiveSheet.Range("$C$257:$C$261"), False, False, , ActiveSheet.Range( _
"$A$1:$I$18"), False, False, False, False, , False
Range("B18").Select
Selection.Copy
Sheets("Sheet2").Select
Range("B53").Select
ActiveSheet.Paste
End Sub
PS:I have no knowledge of coding/macro-ing whatsoever, so a simple answer would be great
thanks!
this is the code i have from the macro
Sub test()
'
' test Macro
' test
'
' Keyboard Shortcut: Ctrl+t
'
Application.Run "ATPVBAEN.XLAM!Regress", ActiveSheet.Range("$B$257:$B$261") _
, ActiveSheet.Range("$C$257:$C$261"), False, False, , ActiveSheet.Range( _
"$A$1:$I$18"), False, False, False, False, , False
Range("B18").Select
Selection.Copy
Sheets("Sheet2").Select
Range("B53").Select
ActiveSheet.Paste
End Sub
PS:I have no knowledge of coding/macro-ing whatsoever, so a simple answer would be great
thanks!