Hi. I'm making a employee review worksheet.
I'm trying to have 5 check boxes next to the numbers 1-5 to allow for the user to select rankings of 1 - 5 in different fields. Then trying to add all these values of the different rankings (summing the 1-5's).
The first field "Quality of work" QOW has options of 1 - 5 (1 bad, 5 great).
I am using Macros, and checkboxes legacy tool "checkbox form field" with bookmarks
QOW1_Check1, QOW1_Check2, QOW1_Check3, QOW1_Check4, QOW1_Check5.
Each calls the macro QOW1.
Here's code.
=========================
Sub QOW1()
Dim QOW1Total As Integer
Dim x As Integer
If QOW1_Check1.value = True Then
x = x + 1
ElseIf QOW1_Check2.value = True Then
x = x + 2
ElseIf QOW1_Check3.value = True Then
x = x + 3
ElseIf QOW1_Check4.value = True Then
x = x + 4
ElseIf QOW1_Check5.value = True Then
x = x + 5
Else
MsgBox ("You must select a scale of 1 to 5")
End If
Dim message As String
message = x
MsgBox (message)
QOW1Total = x
End Sub
================================================
I recieve error 424 "no object" on first line of if statement. Please help!!!
Thanks!
Bookmarks