Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I have the following code: Private Sub UserForm_QueryClose(Cancel As Integer, _ CloseMode As Integer) If CloseMode = vbFormControlMenu Then Cancel = True Unload AddTitle AddOrFind.Show End If End Sub What I'm trying to accomplish is when I click the red X (close) in the upper right corner of AddTitle I want the AddTitle userform to close and the AddOrFind userform to open. Instead what's happening is the AddOrFind userform is showing on top of the AddTitle userform. How do I get the AddTitle userform disappear? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() see below "Bishop" wrote in message ... I have the following code: Private Sub UserForm_QueryClose(Cancel As Integer, _ CloseMode As Integer) If CloseMode = vbFormControlMenu Then Cancel = True Me.Hide '' Unload AddTitle 'rem out AddOrFind.Show End If End Sub What I'm trying to accomplish is when I click the red X (close) in the upper right corner of AddTitle I want the AddTitle userform to close and the AddOrFind userform to open. Instead what's happening is the AddOrFind userform is showing on top of the AddTitle userform. How do I get the AddTitle userform disappear? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Ok, that gets rid of the AddTitle userform but if I pull it up again the QueryClose function doesn't even respond. Clicking the red X does nothing. Here's how this flows so you have a better idea. When the spreadsheet opens the AddOrFind userform shows. AddOrFind has 3 buttons one of which calls the AddTitle userform. If I call up the AddTitle userform and click the red X AddTitle goes away (Me.Hide) and AddOrFind pops back up. If I choose AddTitle again the userform shows but the QueryClose function no longer responds. "Patrick Molloy" wrote: see below "Bishop" wrote in message ... I have the following code: Private Sub UserForm_QueryClose(Cancel As Integer, _ CloseMode As Integer) If CloseMode = vbFormControlMenu Then Cancel = True Me.Hide '' Unload AddTitle 'rem out AddOrFind.Show End If End Sub What I'm trying to accomplish is when I click the red X (close) in the upper right corner of AddTitle I want the AddTitle userform to close and the AddOrFind userform to open. Instead what's happening is the AddOrFind userform is showing on top of the AddTitle userform. How do I get the AddTitle userform disappear? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
UserForm QueryClose | Excel Programming | |||
QueryClose problem | Excel Programming | |||
Userform Queryclose and Unload problem | Excel Programming |