Results 1 to 3 of 3

Thread: [RESOLVED] unload only midform child

  1. #1

    Thread Starter
    Hyperactive Member RS_Arm's Avatar
    Join Date
    Mar 2007
    Location
    Planet Earth
    Posts
    282

    Resolved [RESOLVED] unload only midform child

    Hi.
    I would like to unload, only, mdiform childs.
    I've tryied this, but obviously it doesn't work:
    Code:
    Private Sub close_all_Click()
    Dim objForm As Form
    
    For Each objForm In Forms
        If (objForm.MDIChild = True) Then 'error
            Unload objForm
        End If
    Next
    
    Set objForm = Nothing
    End Sub
    Need help.
    Thanks

  2. #2

  3. #3

    Thread Starter
    Hyperactive Member RS_Arm's Avatar
    Join Date
    Mar 2007
    Location
    Planet Earth
    Posts
    282

    Re: unload only midform child

    Ok. That worked. Thanks

Posting Permissions

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



Click Here to Expand Forum to Full Width