Dear friends,
From this very forum I vicariously acquired the following vba which could ensure that at least one checkbox had been checked in a range. For the sake of simplicity, I am trialing this in a new excel sheet(2007) with just 5 check-boxes - "check box 1", "check box 2", etc.
The error I am getting is as follows: Method oleobjects of object _worksheet failedPlease Login or Register to view this content.
The debugger signals that the line If .OLEObjects("Checkbox" & i).Object.Value = "True" Then is the problem.
So it seems to me that this line is not properly referencing my boxes .
Could anybody please advise how I should adapt the code to make it work? Additionally, what does oleobject mean?
N.B, seeing as the code was for a private macro and i didn't want that, I also changed the first line toHopefully this hasn't caused any issues.Please Login or Register to view this content.
Bookmarks