I was wondering if there was a better/more succinct way of doing this.
I'm performing a calcuation in Excel 2007 based on the value of a combo box. Here's a snipped of the code:
I suppose I could set all those things equal to variables previous to the logic loop, but that just seems, well, wasteful. I guess my question is, is there a way to shorten up the code to pull a value out of a cell in Excel to make the calculations a bit easier to read?
Thanks.
Thanks!!
Matt
I'm performing a calcuation in Excel 2007 based on the value of a combo box. Here's a snipped of the code:
Code:
If ComboBox2.Value = "lb/hr" Then
ActiveSheet.Range("L20").Value = ActiveSheet.Range("E20").Value / 24 / 379.32 * ActiveSheet.Range("E15").Value
I suppose I could set all those things equal to variables previous to the logic loop, but that just seems, well, wasteful. I guess my question is, is there a way to shorten up the code to pull a value out of a cell in Excel to make the calculations a bit easier to read?
Thanks.
Thanks!!
Matt