I'm trying to get this line of code to work, but I'm dealing with two named ranges (xval and yval). The ranges work and I can select between them just fine.
Ideally, I'd prefer not to have to put it in to a formula. I'd just like to get the solution or value passed to a named string.
ie.
Dim DeclineV as long
decline = -LN(1-((LOGEST((yval),(xval))-1)*365
No clue what I'm doing. Any help would be appreciated.
Ideally, I'd prefer not to have to put it in to a formula. I'd just like to get the solution or value passed to a named string.
ie.
Dim DeclineV as long
decline = -LN(1-((LOGEST((yval),(xval))-1)*365
No clue what I'm doing. Any help would be appreciated.
Code:
Range("F2").Formula = "=-LN(1-((LOGEST((yval),(xval))-1)*365))"