Good Afternoon. I am building a database with VBA. And now I have three data validation drop down menu in one sheet. Each menu has a list that contains item with which I can click on and call out macros. And the function of those macros are to print out some item on another worksheet. Here is my code for the data validation.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$B$3" Then
Select Case Target.Value2
Case "ABCP"
Call Macro1
Case "Accounting Policy"
Call Macro2
Case "Audit Committee"
Call Macro3
Case "Auto"
Call Macro4
Case "Auto Issuer Floorplan"
Call Macro5
Case "Auto Issuers"
Call Macro6
Case "Board of Director"
Call Macro7
Case "Bondholder Communication WG"
Call Macro8
Case "Canada"
Call Macro9
Case "Canadian Market"
Call Macro10
End Select
End If
End Sub
This is the code for the first data validation. I have another two data validation lists that need to have the same functions. However, I cannot assign the cell where the data validation is to another code that is of this format, or the current one will stop working. I have tried to change the Private_sub Worksheet names, but it won't do. How should I do this?
Thank you in advance!
B3in the other validations?