Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi, I'm very new to VBA and I'm having trouble writing a macro which allow a user to select an x range, which will be returned in the regressio output. Here's what I have so far: 'Sub InputBox() Dim XRng As Range Set XRng = Application.InputBox(prompt:="Select range of X" Type:=8) XRng.Select Application.Run "ATPVBAEN.XLA!Regress", ActiveSheet.Range("A1:A" Cells(Rows.Count, "A").End(xlUp).Row), _ ActiveSheet.Range("XRng"), False, True, ActiveSheet.Range("$L$1") _ , False, False, False, False, , False End Sub Any help would be appreciated. Thanks, Mat -- Matt ----------------------------------------------------------------------- MattB's Profile: http://www.excelforum.com/member.php...fo&userid=3168 View this thread: http://www.excelforum.com/showthread.php?threadid=51376 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Problem with Regression function in 2007, Analysis Tool Pak | Excel Discussion (Misc queries) | |||
Problem seting-up Regression Macro | Excel Discussion (Misc queries) | |||
Problem with focusing on Application.Inputbox type:= 8 | Excel Programming | |||
Inputbox for Worksheet name - problem | Excel Programming | |||
InputBox Method Logic Problem | Excel Programming |