Hi,<br><br>Your problem is the "Else c.GetAttrib()=c.GetAttrib() Then" line -- that should either just be "Else" with no condition, or "ElseIf" if you want to do a logical test. It's a problem with the overload of the "=" operator in VBA, I guess -- it's trying to do an assignment, since it doesn't see any reason to do a test.<br><br>HTH,<br>Susan<br><br>On Tuesday, May 22, 2012 10:30:17 AM UTC-4, Beckerlab wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Hi David, thanks for the quick reply.
<br>
<br>I wrote my post in frustration and have deleted it...as it was just
<br>frustration.
<br>
<br>I have written this
<br>
<br>
<br>                'Store the number of the checkbox clicked.
<br>                Dim nCheck As Integer
<br>                nCheck = CInt(Mid(strHit, 5, 1))
<br>
<br>                Debug.Print nCheck
<br>
<br>                If c.GetAttrib("Check" & nCheck & "Image") =
<br>c.GetAttrib("CorrectAnswer") then
<br>
<br>                        c.<wbr>SetAttrib "Check" & nCheck & "Image", "redbox.jpg"
<br>
<br>                Else c.GetAttrib("Check" & nCheck & "Image") = c.GetAttrib("Check" &
<br>nCheck & "Image") then
<br>
<br>                        c.<wbr>SetAttrib "Check" & nCheck & "Image", "checkempty.bmp"
<br>                End If
<br>
<br>
<br>I keep getting an error that says "Can't Assign Constant"
<br>
<br></blockquote>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msg/e-prime/-/k9LzLEW9xccJ">https://groups.google.com/d/msg/e-prime/-/k9LzLEW9xccJ</a>.<br /> 
To post to this group, send email to e-prime@googlegroups.com.<br />
To unsubscribe from this group, send email to e-prime+unsubscribe@googlegroups.com.<br />

For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.<br />