ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Controlling Userforms (https://www.excelbanter.com/new-users-excel/107693-controlling-userforms.html)

harrysfan

Controlling Userforms
 
I have designed a userform which produces a combobox(1) - list of items
from which an item can be selected. Based on this selection another
combobox(2) is produced and displayed on the userform with an item list
from which another item can be selected.

when an item is selected from this combobox(2) I need to be able to
show another userform based on the selected item eg.

TYPE1
TYPE2
TYPE3
TYPE4

I have designed the (secondary) userforms (and called them type1 -
type4) but cannot get them to display based on the selection made in
combobox(2)

Can anyone help please.


Bob Phillips

Controlling Userforms
 

Select Case Combobox2.Value
Case 1: TYPE1.Show
Case 2: TYPE2.SHow
'etc.
End Select

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"harrysfan" wrote in message
oups.com...
I have designed a userform which produces a combobox(1) - list of items
from which an item can be selected. Based on this selection another
combobox(2) is produced and displayed on the userform with an item list
from which another item can be selected.

when an item is selected from this combobox(2) I need to be able to
show another userform based on the selected item eg.

TYPE1
TYPE2
TYPE3
TYPE4

I have designed the (secondary) userforms (and called them type1 -
type4) but cannot get them to display based on the selection made in
combobox(2)

Can anyone help please.





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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com