Question : load a form base on a selectipon from a dropdown list

hello,
I need to load a userform in excel based on what the user selects from a data validation list.
For example:
column a:a is set to data validation with the following options - Apple,Banana.Orange
if the user selects Apple then I need userform frmApple to popup...where they then enter data. when complete the use closes the form, data is written and they go to the next cell and select Banana...which shoudl then prompt frmBanana to popup....etc.


thks
mno101

Answer : load a form base on a selectipon from a dropdown list

Have you considered using a Worksheet_Change sub to launch your userforms?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim targ As Range
Set targ = Range("A1")   'Watch this cell (or cells)
Set targ = Intersect(targ, Target)
If targ Is Nothing Then Exit Sub

Select Case LCase(targ.Cells(1))
Case "apple"
    frmApple.Show
Case "banana"
    frmBanana.Show
Case "orange"
    frmOrange.Show
End Select
End Sub
 
Sample file with data validation dropdown and userforms
 
Random Solutions  
 
programming4us programming4us