I'm trying to add "Select All" and "Select None" buttons. After
I'm adding
at which point I want to name them, so that I can have a private sub called CommandButton7_Click (the actual name doesn't matter) at the bottom to do the code of selecting all checkboxes. However, I can't seem to name these buttons since they are created automatically (instead of having a userform??). I don't know the syntax that would get me to
I don't care if i reference a private sub with "Click" or if i reference an outside Macro that does the code, but I'm stuck here.
My other problem is that I'm going after a moving target. If i use another checkbox, instead of a commandbutton, I don't know what number checkbox I will be on, since the number is dependent on the number of sheets to print... different with every .xls file.
Any ideas?? Thanks.
Bookmarks