Good afternoon everyone. I'm attempting to execute an If-Then-Else block of code. The compiler keeps blowing up; it cannot connect the different parts of my block. I've tried numerous changes with no result. Please help! Thank you.
my code:
If (MessageBox.Show("Are you using SPOT_IN transmission?", "PJM transmission type" _
, MessageBoxButtons.YesNo, MessageBoxIcon.Question) = _
Windows.Forms.DiagogResult.Yes) Then _
Range("I36:J36").Select: ActiveCell.FormulaR1C1 = "$0.74 on / $0.43 off" _
Else
Range("I36:J36").Select: ActiveCell.FormulaR1C1 = ("MISO: $0.74 on/$0.43 off; PJM: $0.67")
End If
my code:
If (MessageBox.Show("Are you using SPOT_IN transmission?", "PJM transmission type" _
, MessageBoxButtons.YesNo, MessageBoxIcon.Question) = _
Windows.Forms.DiagogResult.Yes) Then _
Range("I36:J36").Select: ActiveCell.FormulaR1C1 = "$0.74 on / $0.43 off" _
Else
Range("I36:J36").Select: ActiveCell.FormulaR1C1 = ("MISO: $0.74 on/$0.43 off; PJM: $0.67")
End If