You are using an undeclared variable called 'l' (upper case for clarity - 'L')
As it is undeclared, it will assume a value of 0 or 'Empty' depending on how it is used. The iine
will force l to a value of 0 so that line is looking for a checkbox named 'Checkbox-3'
You need to replace the calculated name with the actual name of the checkbox. You can get this by right clicking on the chckbox and looking at the Name box to the left of the Formula bar above the worksheet and edit the line like
Where 'Checkbox1' is the actual name of the checkbox.
There are 2 lines to edit.
To prevent errors like this you should use the
directve at the top of each code module. This will raise a compile error if there are any undeclared variables. See
http://www.cpearson.com/excel/declaringvariables.aspx for details.
Bookmarks