JBShandrew
Board Regular
- Joined
- Apr 17, 2011
- Messages
- 54
How do I get this formula to work in VBA without creating a Sub()?
.Range("M33").Value = "=IF(L33<2,"Min 2 tests",IF(AND(L33>3,L33<4),"4 TESTS",IF(AND(L33>4,L33<6),"5 tests","More than five test are necessary per LIFT")))
I'm trying to use it in conjunction with a "With Statement"
These work very well, Thanks to Jake's expert help.
.Range("L31").Value = "=($G$32*$I$32*$K$32)/9"
.Range("L33").Value = "=($L$31/5000)"
.Range("M31").Value = "Test every 5,000 SQ Yards"
With one of Mr. Spreedsheets books, I get an example of using If-Then-Else, but not for this many variables: and not in this format, can this work in a Range statement to assign this formula to a specific cell?
.Range("M33").Value = "=IF(L33<2,"Min 2 tests",IF(AND(L33>3,L33<4),"4 TESTS",IF(AND(L33>4,L33<6),"5 tests","More than five test are necessary per LIFT")))
I'm trying to use it in conjunction with a "With Statement"
These work very well, Thanks to Jake's expert help.
.Range("L31").Value = "=($G$32*$I$32*$K$32)/9"
.Range("L33").Value = "=($L$31/5000)"
.Range("M31").Value = "Test every 5,000 SQ Yards"
With one of Mr. Spreedsheets books, I get an example of using If-Then-Else, but not for this many variables: and not in this format, can this work in a Range statement to assign this formula to a specific cell?