Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default Hidden Userform

Excel 2003 Win XP
I have a large (physically) userform one control of which calls another
(smaller) UF.
Sometimes the smaller form, when called, appears on top of the larger one
which is the required result.
However sometimes it is beneath or hidden by the larger one which is not the
required result.

If I minimise the larger form, move the smaller one to where part of it is
visible
when the larger one is maximised again, then click the smaller form itself,
(not a control) then all the form is on top of the larger one.
I have tried repaint to no avail.
How can I ensure the smaller form, when called, always appears on top of the
larger one.
Could I click the smaller form programmatically.
donwb


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 171
Default Hidden Userform

Is it necessary for both userforms to be open at the same time?

If so, you might play around with their positions when they are initialized.
Or maybe you should consider a different type of Userform control (page or
tab feature) to encase everything you need on the main form.

If it is not necessary for them both to be open at the same time, I would
highly recommend hiding one whenever the other is initialized.

Mark

"donwb" wrote in message
...
Excel 2003 Win XP
I have a large (physically) userform one control of which calls another
(smaller) UF.
Sometimes the smaller form, when called, appears on top of the larger one
which is the required result.
However sometimes it is beneath or hidden by the larger one which is not
the required result.

If I minimise the larger form, move the smaller one to where part of it is
visible
when the larger one is maximised again, then click the smaller form
itself,
(not a control) then all the form is on top of the larger one.
I have tried repaint to no avail.
How can I ensure the smaller form, when called, always appears on top of
the larger one.
Could I click the smaller form programmatically.
donwb

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default Hidden Userform

Hi Mark
Thanks for the response.
That's the "guaranteed" fix.
But I had hoped to keep the main form visible all the time.
There must be some way.......
donwb

"Mark Ivey" wrote in message
...
Is it necessary for both userforms to be open at the same time?

If so, you might play around with their positions when they are
initialized. Or maybe you should consider a different type of Userform
control (page or tab feature) to encase everything you need on the main
form.

If it is not necessary for them both to be open at the same time, I would
highly recommend hiding one whenever the other is initialized.

Mark

"donwb" wrote in message
...
Excel 2003 Win XP
I have a large (physically) userform one control of which calls another
(smaller) UF.
Sometimes the smaller form, when called, appears on top of the larger one
which is the required result.
However sometimes it is beneath or hidden by the larger one which is not
the required result.

If I minimise the larger form, move the smaller one to where part of it
is visible
when the larger one is maximised again, then click the smaller form
itself,
(not a control) then all the form is on top of the larger one.
I have tried repaint to no avail.
How can I ensure the smaller form, when called, always appears on top of
the larger one.
Could I click the smaller form programmatically.
donwb



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 171
Default Hidden Userform

Have you played around with the FOCUS features?

Mark

"donwb" wrote in message
...
Hi Mark
Thanks for the response.
That's the "guaranteed" fix.
But I had hoped to keep the main form visible all the time.
There must be some way.......
donwb

"Mark Ivey" wrote in message
...
Is it necessary for both userforms to be open at the same time?

If so, you might play around with their positions when they are
initialized. Or maybe you should consider a different type of Userform
control (page or tab feature) to encase everything you need on the main
form.

If it is not necessary for them both to be open at the same time, I would
highly recommend hiding one whenever the other is initialized.

Mark

"donwb" wrote in message
...
Excel 2003 Win XP
I have a large (physically) userform one control of which calls another
(smaller) UF.
Sometimes the smaller form, when called, appears on top of the larger
one which is the required result.
However sometimes it is beneath or hidden by the larger one which is not
the required result.

If I minimise the larger form, move the smaller one to where part of it
is visible
when the larger one is maximised again, then click the smaller form
itself,
(not a control) then all the form is on top of the larger one.
I have tried repaint to no avail.
How can I ensure the smaller form, when called, always appears on top of
the larger one.
Could I click the smaller form programmatically.
donwb



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default Hidden Userform

I did try to set the focus on the smaller UserForm but
UserFormXX.SetFocus was rejected.
Then I tried to set the focus to one of the form's controls, as in
UserFormXX.CommandButtonYY.SetFocus
and although that was accepted, the UF stayed hidden behind the large one.
donwb

"Mark Ivey" wrote in message
...
Have you played around with the FOCUS features?

Mark

"donwb" wrote in message
...
Hi Mark
Thanks for the response.
That's the "guaranteed" fix.
But I had hoped to keep the main form visible all the time.
There must be some way.......
donwb

"Mark Ivey" wrote in message
...
Is it necessary for both userforms to be open at the same time?

If so, you might play around with their positions when they are
initialized. Or maybe you should consider a different type of Userform
control (page or tab feature) to encase everything you need on the main
form.

If it is not necessary for them both to be open at the same time, I
would highly recommend hiding one whenever the other is initialized.

Mark

"donwb" wrote in message
...
Excel 2003 Win XP
I have a large (physically) userform one control of which calls
another (smaller) UF.
Sometimes the smaller form, when called, appears on top of the larger
one which is the required result.
However sometimes it is beneath or hidden by the larger one which is
not the required result.

If I minimise the larger form, move the smaller one to where part of it
is visible
when the larger one is maximised again, then click the smaller form
itself,
(not a control) then all the form is on top of the larger one.
I have tried repaint to no avail.
How can I ensure the smaller form, when called, always appears on top
of the larger one.
Could I click the smaller form programmatically.
donwb







  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 171
Default Hidden Userform

What about the SHOWMODAL properties? Maybe they can help with this
problem...

Mark

"donwb" wrote in message
...
I did try to set the focus on the smaller UserForm but
UserFormXX.SetFocus was rejected.
Then I tried to set the focus to one of the form's controls, as in
UserFormXX.CommandButtonYY.SetFocus
and although that was accepted, the UF stayed hidden behind the large one.
donwb

"Mark Ivey" wrote in message
...
Have you played around with the FOCUS features?

Mark

"donwb" wrote in message
...
Hi Mark
Thanks for the response.
That's the "guaranteed" fix.
But I had hoped to keep the main form visible all the time.
There must be some way.......
donwb

"Mark Ivey" wrote in message
...
Is it necessary for both userforms to be open at the same time?

If so, you might play around with their positions when they are
initialized. Or maybe you should consider a different type of Userform
control (page or tab feature) to encase everything you need on the main
form.

If it is not necessary for them both to be open at the same time, I
would highly recommend hiding one whenever the other is initialized.

Mark

"donwb" wrote in message
...
Excel 2003 Win XP
I have a large (physically) userform one control of which calls
another (smaller) UF.
Sometimes the smaller form, when called, appears on top of the larger
one which is the required result.
However sometimes it is beneath or hidden by the larger one which is
not the required result.

If I minimise the larger form, move the smaller one to where part of
it is visible
when the larger one is maximised again, then click the smaller form
itself,
(not a control) then all the form is on top of the larger one.
I have tried repaint to no avail.
How can I ensure the smaller form, when called, always appears on top
of the larger one.
Could I click the smaller form programmatically.
donwb





  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Hidden Userform

Mark got the right answer, when showing the second form, set it to modal

Private Sub CommandButton1_Click()
UserForm2.Show vbModal
End Sub

"donwb" wrote:

Excel 2003 Win XP
I have a large (physically) userform one control of which calls another
(smaller) UF.
Sometimes the smaller form, when called, appears on top of the larger one
which is the required result.
However sometimes it is beneath or hidden by the larger one which is not the
required result.

If I minimise the larger form, move the smaller one to where part of it is
visible
when the larger one is maximised again, then click the smaller form itself,
(not a control) then all the form is on top of the larger one.
I have tried repaint to no avail.
How can I ensure the smaller form, when called, always appears on top of the
larger one.
Could I click the smaller form programmatically.
donwb



  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default Hidden Userform

Thanks Patrick & Mark
Setting the forn to ShowModal=True solved it.
donwb

"Patrick Molloy" wrote in message
...
Mark got the right answer, when showing the second form, set it to modal

Private Sub CommandButton1_Click()
UserForm2.Show vbModal
End Sub

"donwb" wrote:

Excel 2003 Win XP
I have a large (physically) userform one control of which calls another
(smaller) UF.
Sometimes the smaller form, when called, appears on top of the larger one
which is the required result.
However sometimes it is beneath or hidden by the larger one which is not
the
required result.

If I minimise the larger form, move the smaller one to where part of it
is
visible
when the larger one is maximised again, then click the smaller form
itself,
(not a control) then all the form is on top of the larger one.
I have tried repaint to no avail.
How can I ensure the smaller form, when called, always appears on top of
the
larger one.
Could I click the smaller form programmatically.
donwb





  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 171
Default Hidden Userform

Glad to help out...

I was just guessing from my experiences, but Patrick provided the real
fix... thanks for you input Patrick.

Mark

"donwb" wrote in message
...
Thanks Patrick & Mark
Setting the forn to ShowModal=True solved it.
donwb

"Patrick Molloy" wrote in
message ...
Mark got the right answer, when showing the second form, set it to modal

Private Sub CommandButton1_Click()
UserForm2.Show vbModal
End Sub

"donwb" wrote:

Excel 2003 Win XP
I have a large (physically) userform one control of which calls another
(smaller) UF.
Sometimes the smaller form, when called, appears on top of the larger
one
which is the required result.
However sometimes it is beneath or hidden by the larger one which is not
the
required result.

If I minimise the larger form, move the smaller one to where part of it
is
visible
when the larger one is maximised again, then click the smaller form
itself,
(not a control) then all the form is on top of the larger one.
I have tried repaint to no avail.
How can I ensure the smaller form, when called, always appears on top of
the
larger one.
Could I click the smaller form programmatically.
donwb





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Userform moves when hidden and shown again. Dale Fye Excel Programming 6 October 24th 07 01:53 PM
Userform data entry into hidden sheets Pedros[_17_] Excel Programming 2 August 16th 06 04:55 AM
How to evoke a hidden userform? Flippi Excel Programming 1 January 11th 06 11:25 AM
differentiate between a visible and a hidden userform RB Smissaert Excel Programming 2 June 30th 05 10:11 PM
Use userform to get input and compare to a hidden sheet cwwolfdog Excel Discussion (Misc queries) 11 March 24th 05 12:45 AM


All times are GMT +1. The time now is 05:47 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"