PDA

View Full Version : Solved: Why doesn't the dialog disappear



ProteanBeing
01-30-2008, 09:51 AM
This is the code for the close button on my dialog box called SortDialog
When this dialog box is closed the one under it is focused (like I want), but SortDialog is still behind it.

Private Sub CloseButton_Click()
Application.ScreenUpdating = True
SortDialog.Hide
Unload SortDialog
Application.ScreenUpdating = False
End Sub

PhilJette
01-30-2008, 10:00 AM
Have you tried just doing this


Private Sub CloseButton_Click()
Unload Me
End Sub

ProteanBeing
01-30-2008, 10:12 AM
Thanks. That worked