I've found two problems:
1. You should not write statements directly after an Else keyword(in multiline If clause).
Instead of:
Code:
If TextBoxPPH.Text=<0 Then
Msgbox("Must Enter PPH","ERROR:PPH",cMsgBoxOK,cMsgBoxHand)
TextBoxPPH.Color=0,255,255
TextBoxPPH.Focus
Else TextBoxPPH.Color=cWhite
You should write:
Code:
If TextBoxPPH.Text=<0 Then
Msgbox("Must Enter PPH","ERROR:PPH",cMsgBoxOK,cMsgBoxHand)
TextBoxPPH.Color=0,255,255
TextBoxPPH.Focus
Else
TextBoxPPH.Color=cWhite
2. As agraham wrote you should initialize the textbox to 0 or change the condition from:
Code:
Sub InitializeConfigLine
If TextBoxGusset.Text >0 Then
to
Code:
Sub InitializeConfigLine
If TextBoxGusset.Text <> "" AND TextBoxGusset.Text >0 Then