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.
[VBA]Private Sub CloseButton_Click()
Application.ScreenUpdating = True
SortDialog.Hide
Unload SortDialog
Application.ScreenUpdating = False
End Sub
[/VBA]