Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default multiple user formshow

Hi,
This may sound a little strange but is it possible to have 3 user forms
showing on a sheet at the same time?
If yes then how can I do it?

Regards
gregork


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default multiple user formshow

You can have as many as you like, but the latest one is the only one that
can be active, unless ....

As long as you have XL2000 up, make the calling form modeless
(Userform2.show vbmodeless) and then you can switch between.

Also, take a look at Chip's page as you will probably want to set the form
position so that they start not overlaying each other
http://www.cpearson.com/excel/FormPosition.htm

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"gregork" wrote in message
...
Hi,
This may sound a little strange but is it possible to have 3 user forms
showing on a sheet at the same time?
If yes then how can I do it?

Regards
gregork




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default multiple user formshow

Thanks for the reply Bob. I put this code in..........

Private Sub CommandButton3_Click()
UserForm2.Show
UserForm10.Show
UserForm11.Show
End Sub

.........and each userform will only show after I close the first one. I have
set the properties so they are all in different places on the sheet but I
can't get them to show all at the same time? By the way user form 2 is the
form I want to be active the other forms show data related to selections in
form 2. Where am I going wrong?

Many Thanks
gregork
"Bob Phillips" wrote in message
...
You can have as many as you like, but the latest one is the only one that
can be active, unless ....

As long as you have XL2000 up, make the calling form modeless
(Userform2.show vbmodeless) and then you can switch between.

Also, take a look at Chip's page as you will probably want to set the form
position so that they start not overlaying each other
http://www.cpearson.com/excel/FormPosition.htm

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"gregork" wrote in message
...
Hi,
This may sound a little strange but is it possible to have 3 user forms
showing on a sheet at the same time?
If yes then how can I do it?

Regards
gregork






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default multiple user formshow

Hi

You missed the "vbModeless" after Show

Private Sub CommandButton3_Click()
UserForm2.Show vbModeless
UserForm10.Show vbModeless
UserForm11.Show vbModeless
End Sub

Cheers,
Flemming



"gregork" wrote in message
...
Thanks for the reply Bob. I put this code in..........

Private Sub CommandButton3_Click()
UserForm2.Show vbmodeless
UserForm10.Show vbmodeless
UserForm11.Show vbmodeless
End Sub

........and each userform will only show after I close the first one. I

have
set the properties so they are all in different places on the sheet but I
can't get them to show all at the same time? By the way user form 2 is the
form I want to be active the other forms show data related to selections

in
form 2. Where am I going wrong?

Many Thanks
gregork
"Bob Phillips" wrote in message
...
You can have as many as you like, but the latest one is the only one

that
can be active, unless ....

As long as you have XL2000 up, make the calling form modeless
(Userform2.show vbmodeless) and then you can switch between.

Also, take a look at Chip's page as you will probably want to set the

form
position so that they start not overlaying each other
http://www.cpearson.com/excel/FormPosition.htm

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"gregork" wrote in message
...
Hi,
This may sound a little strange but is it possible to have 3 user

forms
showing on a sheet at the same time?
If yes then how can I do it?

Regards
gregork








  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default multiple user formshow

Thanks Flemming. Do you know how I could get all three forms to close when I
close form 2 ?

Regards
gregork

"Flemming Dahl" wrote in message
...
Hi

You missed the "vbModeless" after Show

Private Sub CommandButton3_Click()
UserForm2.Show vbModeless
UserForm10.Show vbModeless
UserForm11.Show vbModeless
End Sub

Cheers,
Flemming



"gregork" wrote in message
...
Thanks for the reply Bob. I put this code in..........

Private Sub CommandButton3_Click()
UserForm2.Show vbmodeless
UserForm10.Show vbmodeless
UserForm11.Show vbmodeless
End Sub

........and each userform will only show after I close the first one. I

have
set the properties so they are all in different places on the sheet but

I
can't get them to show all at the same time? By the way user form 2 is

the
form I want to be active the other forms show data related to selections

in
form 2. Where am I going wrong?

Many Thanks
gregork
"Bob Phillips" wrote in message
...
You can have as many as you like, but the latest one is the only one

that
can be active, unless ....

As long as you have XL2000 up, make the calling form modeless
(Userform2.show vbmodeless) and then you can switch between.

Also, take a look at Chip's page as you will probably want to set the

form
position so that they start not overlaying each other
http://www.cpearson.com/excel/FormPosition.htm

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"gregork" wrote in message
...
Hi,
This may sound a little strange but is it possible to have 3 user

forms
showing on a sheet at the same time?
If yes then how can I do it?

Regards
gregork












  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default multiple user formshow

You can use the End command somewhere in your code on Userform2 like this

Userform10.End
Userform11.End

Cheers,
Flemming


"gregork" wrote in message
...
Thanks Flemming. Do you know how I could get all three forms to close when

I
close form 2 ?

Regards
gregork

"Flemming Dahl" wrote in message
...
Hi

You missed the "vbModeless" after Show

Private Sub CommandButton3_Click()
UserForm2.Show vbModeless
UserForm10.Show vbModeless
UserForm11.Show vbModeless
End Sub

Cheers,
Flemming



"gregork" wrote in message
...
Thanks for the reply Bob. I put this code in..........

Private Sub CommandButton3_Click()
UserForm2.Show vbmodeless
UserForm10.Show vbmodeless
UserForm11.Show vbmodeless
End Sub

........and each userform will only show after I close the first one.

I
have
set the properties so they are all in different places on the sheet

but
I
can't get them to show all at the same time? By the way user form 2 is

the
form I want to be active the other forms show data related to

selections
in
form 2. Where am I going wrong?

Many Thanks
gregork
"Bob Phillips" wrote in message
...
You can have as many as you like, but the latest one is the only one

that
can be active, unless ....

As long as you have XL2000 up, make the calling form modeless
(Userform2.show vbmodeless) and then you can switch between.

Also, take a look at Chip's page as you will probably want to set

the
form
position so that they start not overlaying each other
http://www.cpearson.com/excel/FormPosition.htm

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"gregork" wrote in message
...
Hi,
This may sound a little strange but is it possible to have 3 user

forms
showing on a sheet at the same time?
If yes then how can I do it?

Regards
gregork












  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default multiple user formshow

Whatever code that closes form2, should contain code to close forms 1 and 3.

--
Regards,
Tom Ogilvy

"gregork" wrote in message
...
Thanks Flemming. Do you know how I could get all three forms to close when

I
close form 2 ?

Regards
gregork

"Flemming Dahl" wrote in message
...
Hi

You missed the "vbModeless" after Show

Private Sub CommandButton3_Click()
UserForm2.Show vbModeless
UserForm10.Show vbModeless
UserForm11.Show vbModeless
End Sub

Cheers,
Flemming



"gregork" wrote in message
...
Thanks for the reply Bob. I put this code in..........

Private Sub CommandButton3_Click()
UserForm2.Show vbmodeless
UserForm10.Show vbmodeless
UserForm11.Show vbmodeless
End Sub

........and each userform will only show after I close the first one.

I
have
set the properties so they are all in different places on the sheet

but
I
can't get them to show all at the same time? By the way user form 2 is

the
form I want to be active the other forms show data related to

selections
in
form 2. Where am I going wrong?

Many Thanks
gregork
"Bob Phillips" wrote in message
...
You can have as many as you like, but the latest one is the only one

that
can be active, unless ....

As long as you have XL2000 up, make the calling form modeless
(Userform2.show vbmodeless) and then you can switch between.

Also, take a look at Chip's page as you will probably want to set

the
form
position so that they start not overlaying each other
http://www.cpearson.com/excel/FormPosition.htm

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"gregork" wrote in message
...
Hi,
This may sound a little strange but is it possible to have 3 user

forms
showing on a sheet at the same time?
If yes then how can I do it?

Regards
gregork












  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default multiple user formshow

If you want them modal,

show form1, in its activate event, have it show form3, in the activate
event of form3, have it show form2

Private Sub Userform_Activate() ' form 1 code
userform3.Show
unload me
End Sub

Private Sub Userform_Activate() ' form 3 code
userform2.Show
unload me
End Sub

Private Sub Cmd_OK_Click() ' form 2 code
unload me
End Sub

- add code to position the forms.

--
Regards,
Tom Ogilvy




"gregork" wrote in message
...
Thanks for the reply Bob. I put this code in..........

Private Sub CommandButton3_Click()
UserForm2.Show
UserForm10.Show
UserForm11.Show
End Sub

........and each userform will only show after I close the first one. I

have
set the properties so they are all in different places on the sheet but I
can't get them to show all at the same time? By the way user form 2 is the
form I want to be active the other forms show data related to selections

in
form 2. Where am I going wrong?

Many Thanks
gregork
"Bob Phillips" wrote in message
...
You can have as many as you like, but the latest one is the only one

that
can be active, unless ....

As long as you have XL2000 up, make the calling form modeless
(Userform2.show vbmodeless) and then you can switch between.

Also, take a look at Chip's page as you will probably want to set the

form
position so that they start not overlaying each other
http://www.cpearson.com/excel/FormPosition.htm

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"gregork" wrote in message
...
Hi,
This may sound a little strange but is it possible to have 3 user

forms
showing on a sheet at the same time?
If yes then how can I do it?

Regards
gregork








  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default multiple user formshow

You need to trap the QueryClose event to trap all close situations, like so
in the Userform2


Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
Unload UserForm1
Unload UserForm3
End Sub


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Flemming Dahl" wrote in message
...
You can use the End command somewhere in your code on Userform2 like this

Userform10.End
Userform11.End

Cheers,
Flemming


"gregork" wrote in message
...
Thanks Flemming. Do you know how I could get all three forms to close

when
I
close form 2 ?

Regards
gregork

"Flemming Dahl" wrote in message
...
Hi

You missed the "vbModeless" after Show

Private Sub CommandButton3_Click()
UserForm2.Show vbModeless
UserForm10.Show vbModeless
UserForm11.Show vbModeless
End Sub

Cheers,
Flemming



"gregork" wrote in message
...
Thanks for the reply Bob. I put this code in..........

Private Sub CommandButton3_Click()
UserForm2.Show vbmodeless
UserForm10.Show vbmodeless
UserForm11.Show vbmodeless
End Sub

........and each userform will only show after I close the first

one.
I
have
set the properties so they are all in different places on the sheet

but
I
can't get them to show all at the same time? By the way user form 2

is
the
form I want to be active the other forms show data related to

selections
in
form 2. Where am I going wrong?

Many Thanks
gregork
"Bob Phillips" wrote in message
...
You can have as many as you like, but the latest one is the only

one
that
can be active, unless ....

As long as you have XL2000 up, make the calling form modeless
(Userform2.show vbmodeless) and then you can switch between.

Also, take a look at Chip's page as you will probably want to set

the
form
position so that they start not overlaying each other
http://www.cpearson.com/excel/FormPosition.htm

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"gregork" wrote in message
...
Hi,
This may sound a little strange but is it possible to have 3

user
forms
showing on a sheet at the same time?
If yes then how can I do it?

Regards
gregork














  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default multiple user formshow

Thanks for all the replies guys. Everything's working perfectly.

Kind Regards
gregork

"gregork" wrote in message
...
Hi,
This may sound a little strange but is it possible to have 3 user forms
showing on a sheet at the same time?
If yes then how can I do it?

Regards
gregork




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
Multiple User issues Mark W.[_2_] Excel Worksheet Functions 0 December 15th 08 09:03 PM
Multiple user excel file Nithin New Users to Excel 1 August 14th 08 05:59 AM
Multiple user Time tracking Darren Excel Discussion (Misc queries) 0 December 11th 07 06:39 PM
General multiple new user questions slindsey New Users to Excel 1 February 15th 07 11:09 AM
multiple user DB access via Excel (troubleshooting?) Viggy Excel Programming 1 February 3rd 04 03:27 PM


All times are GMT +1. The time now is 11:35 PM.

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"