Could somebody provide me with a function that takes two userform controls as passed parameters, and returns a boolean that indicates whether any parts of the two controls overlap. The controls will both be in the same container frame, and I don't care which of the two is on top.
It would look something like this:
[vba]Function isOverlapped(ctl1 as MSForms.Control, ctl2 as MSForms.Control) as Boolean
<your code goes here>
End Function[/vba]
Thanks.