Hi,
I created a dynamic drop down list for column 26 with this code :
=INDIRECT("Sheet1!$J$2:$J$" & COUNTA(Sheet1!$J:$J))
Then I linked the list the list with this code:
Dim SubProcess As String
Dim LastRow As Integer
Select Case Target.Column
Case 24
SubProcess = Cells(Target.Row, Target.Column)
If Application.WorksheetFunction.CountIf(Sheets("Sheet1").Range("J:J"), SubProcess) = 0 Then
LastRow = Sheets("Sheet1").Cells(Rows.Count, 10).End(xlUp).Row + 1
Sheets("Sheet1").Cells(LastRow, 10) = SubProcess
So the logic is, column 24 is empty, when a user enters an item in column 24, it shows up as a drop down list in column 26
But the problem is if a user clears an item from the column it still shows on the list. How do I get the item the user deletes from showing up in the list?
I created a dynamic drop down list for column 26 with this code :
=INDIRECT("Sheet1!$J$2:$J$" & COUNTA(Sheet1!$J:$J))
Then I linked the list the list with this code:
Dim SubProcess As String
Dim LastRow As Integer
Select Case Target.Column
Case 24
SubProcess = Cells(Target.Row, Target.Column)
If Application.WorksheetFunction.CountIf(Sheets("Sheet1").Range("J:J"), SubProcess) = 0 Then
LastRow = Sheets("Sheet1").Cells(Rows.Count, 10).End(xlUp).Row + 1
Sheets("Sheet1").Cells(LastRow, 10) = SubProcess
So the logic is, column 24 is empty, when a user enters an item in column 24, it shows up as a drop down list in column 26
But the problem is if a user clears an item from the column it still shows on the list. How do I get the item the user deletes from showing up in the list?