Forum Discussion
Excel mandatory cell with dropdown menu
- Mar 17, 2020
You can do this with a very small macro on the page itself:
Private Sub worksheet_Change(ByVal target As Range)
If Not Intersect(target, Range("M:O")) Is Nothing Then
MsgBox ("You must now change the dropdown in column P")
Else
End IfEnd Sub
I have attached an example - press Alt F11 to open the VBA editor and see the code in situ.
You can do this with a very small macro on the page itself:
Private Sub worksheet_Change(ByVal target As Range)
If Not Intersect(target, Range("M:O")) Is Nothing Then
MsgBox ("You must now change the dropdown in column P")
Else
End If
End Sub
I have attached an example - press Alt F11 to open the VBA editor and see the code in situ.
Savia I'm new to VBA, how can i just make the dropdown mandatory? this is a table where data entry is ongoing