Many thanks to abousetta, JosephP and jraj1106 for your responses.
For completeness the code I am using is:
UserformB call from textbox on UserformA (thanks to JosephP for your advice here)
Private Sub textbox_1_MouseUp(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
If Button = 1 Then
With UserformB
.Caption = "my caption"
.Show
End With
End If
End Sub
and to unload/close UserformB
Private Sub cmdbutUserformB_Click()
Unload UserformB
End Sub
Nothing unusual I don't think; and I have nothing in the UserFormB_Query_Close event.
However, for reference for others perhaps, I may have solved the cause without understanding why.
I currently open (.Show) UserformA (which calls UserformB)as modeless.
If I open UserformA as modal then the double-close problem I have disappears and UserformA remains Open - success.
Whilst I didn't appreciate this at the time is this normal userform behaviour?
However, thank you for your responses which of themselves help the thinking process.
Barry
Bookmarks