I'm trying to add two variables together, but my plus sign keeps disappearing. My program looks like this:
Dim Unlim_H_Grp2 As Double
Dim SatH As Double
Dim IH_Grp2 As Double
Dim SatH As Double
Dim IH_Grp2 As Double
Dim DepRateH As Double
Dim Init_H_Grp2 As Double
If Unlim_H_Grp2 >= SatH Then
IH_Grp2 H_Subs_Grp2 = SatH - (1 - DepRateH) * Init_H_Grp2
H_Grp2 = SatH
Else
IH_Grp2 = IH_Grp2
H_Grp2 = Unlim_H_Grp2
End If
I want the second row, the first row underneath the If statement to read:
IH_Grp2 + H_Subs_Grp2 = SatH - (1 - DepRateH) * Init_H_Grp2
However, every time I insert the plus sign it disappears. If I run the program, I get an error "Expected, Sub, Function, or Property" message.
Any suggestions? Is my file corrupted? If so, what can I do to fix the problem?
Dim Unlim_H_Grp2 As Double
Dim SatH As Double
Dim IH_Grp2 As Double
Dim SatH As Double
Dim IH_Grp2 As Double
Dim DepRateH As Double
Dim Init_H_Grp2 As Double
If Unlim_H_Grp2 >= SatH Then
IH_Grp2 H_Subs_Grp2 = SatH - (1 - DepRateH) * Init_H_Grp2
H_Grp2 = SatH
Else
IH_Grp2 = IH_Grp2
H_Grp2 = Unlim_H_Grp2
End If
I want the second row, the first row underneath the If statement to read:
IH_Grp2 + H_Subs_Grp2 = SatH - (1 - DepRateH) * Init_H_Grp2
However, every time I insert the plus sign it disappears. If I run the program, I get an error "Expected, Sub, Function, or Property" message.
Any suggestions? Is my file corrupted? If so, what can I do to fix the problem?