Excel drop-down menu questions

Bobo 1 Reputation point
2022-08-29T00:34:48.263+00:00

Hello everyone!
Want to ask EXCEL drop-down menu questions,
At present, there are two layers of drop-down menus.
The second layer selects the list according to the conditions selected in the first layer. The current problem is that if you go back to the first layer to modify the selected list, if you do not do the second layer selection, the input fields in the second layer will not be displayed. It will not change. You need to press the pull-down menu to reselect it to pop up. I would like to ask if there is a way to make the second layer blank when the first layer is modified?
Also please experts to answer, thank you.235593-excel%E5%95%8F%E9%A1%8C.png

Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,363 questions
No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Emi Zhang-MSFT 11,566 Reputation points Microsoft Vendor
    2022-08-29T09:00:17.463+00:00

    Hi @
    It seems you're looking for the dependent dropdown list:

    https://exceljet.net/dependent-dropdown-lists
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.

    Refer to this support article about how to make dependent dropdown list, just checking in to see if the information was helpful. If anything is unclear with the information I've provided to you, please don't hesitate to let me know. I am glad to be of assistance.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Emi Zhang-MSFT 11,566 Reputation points Microsoft Vendor
    2022-09-08T09:32:49.243+00:00

    Hi @Bobo ,
    You can try to enter the code to Excel:

    Private Sub Worksheet_Change(ByVal Target As Range)  
        Application.EnableEvents = False  
        If Target.Column = 2 And Target.Validation.Type = 3 Then  
            Target.Offset(0, 1).Value = ""  
        End If  
        Application.EnableEvents = True  
    End Sub  
    

    You need to change the Target.Column = 2, the number 2 is the column number contains the parent drop down list.
    In the example my parent drop down list locates in column B:

    238910-image.png

    Hope it's helpful.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

  3. Bobo 1 Reputation point
    2022-09-12T06:59:25.02+00:00

    Dear @Emi Zhang-MSFT

    Thank you very much for your reply!I try to use the method you provided can achieve a second order reset!!
    But a new problem arises.
    When I try to enter a value in the third column or delete the values ​​in the first and second columns at the same time, the "1004" error message will appear.
    Do you know how to solve this problem?Thank you!

    239966-0912q.png

    239981-0912q2.png