I think that you issue may be that line ** code is to long. You will need to amend with line breaks. Try this:
EvalNotScored = (Application.WorksheetFunction.CountIf(PennShoulderEvalQ1TextBox, "") + _
Application.WorksheetFunction.CountIf(PennShoulderEvalQ2TextBox, "") + _
Application.WorksheetFunction.CountIf(PennShoulderEvalQ3TextBox, "") + _
Application.WorksheetFunction.CountIf(PennShoulderEvalQ4TextBox, "") + _
Application.WorksheetFunction.CountIf(PennShoulderEvalQ5TextBox, "") + _
Application.WorksheetFunction.CountIf(PennShoulderEvalQ6TextBox, "") + _
Application.WorksheetFunction.CountIf(PennShoulderEvalQ7TextBox, "") + _
Application.WorksheetFunction.CountIf(PennShoulderEvalQ8TextBox, "") + _
Application.WorksheetFunction.CountIf(PennShoulderEvalQ9TextBox, "") + _
Application.WorksheetFunction.CountIf(PennShoulderEvalQ10TextBox, "") + _
Application.WorksheetFunction.CountIf(PennShoulderEvalQ11TextBox, "") + _
Application.WorksheetFunction.CountIf(PennShoulderEvalQ12TextBox, "") + _
Application.WorksheetFunction.CountIf(PennShoulderEvalQ13TextBox, "") + _
Application.WorksheetFunction.CountIf(PennShoulderEvalQ14TextBox, "") + _
Application.WorksheetFunction.CountIf(PennShoulderEvalQ15TextBox, "") + _
Application.WorksheetFunction.CountIf(PennShoulderEvalQ16TextBox, "") + _
Application.WorksheetFunction.CountIf(PennShoulderEvalQ17TextBox, "") + _
Application.WorksheetFunction.CountIf(PennShoulderEvalQ18TextBox, "") + _
Application.WorksheetFunction.CountIf(PennShoulderEvalQ19TextBox, "") + _
Application.WorksheetFunction.CountIf(PennShoulderEvalQ20TextBox, ""))
VBA code only allows so many characters per line. IN any event, it is easier to read and analyze if the lines are broken. To make them continuous, you place a space and an underscore and then the enter key and the code continues to the next line.
Alan
Bookmarks