Professional Documents
Culture Documents
Macro To Execute On Changing Excel Cell Value
Macro To Execute On Changing Excel Cell Value
myArray1 = Split("1|2|3|4|" _
& "5|6|7|8|" _
& "9|10|11|12", "|")
myArray2 = Split("100|150|200|250|300|350|400|450|", "|")
UserForm1.ComboBox1.List = myArray1
UserForm1.ComboBox2.List = myArray2
UserForm1.Show
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
If Selection.Address = "$D$3" Then
myArray1 = Split("1|2|3|4|" _
& "5|6|7|8|" _
& "9|10|11|12", "|")
myArray2 = Split("100|150|200|250|300|350|400|450|", "|")
UserForm1.ComboBox1.List = myArray1
UserForm1.ComboBox2.List = myArray2
UserForm1.Show
End If
End Sub