+ Reply to Thread
Results 1 to 2 of 2

Assessing whether any checkboxes are checked within frame

  1. #1
    ExcelMonkey
    Guest

    Assessing whether any checkboxes are checked within frame

    Is it possible to check and see if at least 1 checkbox in a frame is checked.
    I am assuming that you have to group the checkboxes and check on of their
    properties within a For Each loop

    Thanks.

  2. #2
    Tom Ogilvy
    Guest

    Re: Assessing whether any checkboxes are checked within frame

    Dim bChecked as Boolean
    Dim ctl as Control

    bChecked = False
    for each ctl in Userform1.Frame1.Controls
    if typeof ctl is MSForms.CheckBox then
    if ctl.Value then
    bChecked = True
    exit for
    end if
    end if
    Next
    if bChecked = False then

    msgbox "Please check on box"
    End if

    --
    Regards,
    Tom Ogilvy

    "ExcelMonkey" <ExcelMonkey@discussions.microsoft.com> wrote in message
    news:AB11F727-9014-4740-BBBD-E1125F0EDF68@microsoft.com...
    > Is it possible to check and see if at least 1 checkbox in a frame is

    checked.
    > I am assuming that you have to group the checkboxes and check on of their
    > properties within a For Each loop
    >
    > Thanks.




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1