Thank you shg.
As I'm thinking about how to implement this, is there anyway to build a range off of user input?
Example:
The y's are in B4:B29
The x's are in column C4:H29
The user may want to test different x's in the equation, so is there a way to have the user double click in that particular column and only have those ranges added into the known_x's argument of the Linest function?
For the double click method on row two I'm going to use...
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
'Limit Target count to 1
If Target.Count > 1 Then Exit Sub
'Isolate Target to a specific range
If Intersect(Target, Range("myChecks")) Is Nothing Then Exit Sub
'Set Target font to "marlett"
Target.Font.Name = "marlett"
'Check value of target
If Target.Value <> "a" Then
Target.Value = "a" 'Sets target Value = "a"
Cancel = True
Exit Sub
End If
If Target.Value = "a" Then
Target.ClearContents 'Sets Target Value = ""
Cancel = True
Exit Sub
End If
End Sub
Bookmarks