Forum Discussion

Maggie_Monteleone's avatar
Maggie_Monteleone
Copper Contributor
Oct 06, 2021
Solved

Drop-down lists

Can someone help me to create a drop down list that changes the worksheet to a blank with only the titles shown on the previous drop-down category so I can enter additional information.  For instance...
  • HansVogelaar's avatar
    HansVogelaar
    Oct 07, 2021

    Maggie_Monteleone 

    That would require VBA.

    Right-click the sheet tab.

    Select 'View Code' from the context menu.

    Copy the code listed below into the code window.

    Switch back to Excel.

    Save the workbook as a macro-enabled workbook (*.xlsm).

    Make sure that you allow macros when you open it.

    Private Sub Worksheet_Change(ByVal Target As Range)
        If Not Intersect(Range("C3"), Target) Is Nothing Then
            Application.EnableEvents = False
            Range("C9:C9,C23:C24").ClearContents
            Application.EnableEvents = True
        End If
    End Sub

Resources