Force user to select from list on adjacent column if option from list is selected

lucid33

New Member
Joined
Mar 1, 2021
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hi All,

A user on this site kindly provided me with the below code. The code done exactly what I wanted at the time:
"I have a dropdown list on column AY with 'In-Scope' & 'Removed' as the options. If a user selects 'Removed' I want to force them to enter free text in column AZ to explain why they selected 'Removed'."

What I'm looking to change in this code is if the user selects 'Removed' on column AY, it forces them to select from a list or group of options which will be shown on column AZ, e.g 'Damaged', 'Other' etc

I probably will have six options to choose from.

Thanks

Rich (BB code):
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Count > 1 Or Target.Column <> 51 Then Exit Sub 'Check for Entry in a single cell in Column AY
    If Target = "Removed" Then
        Response = InputBox("Enter reason for removal from scope below:", "Reason for removal")
        Application.EnableEvents = False
        If Len(Response) = 0 Then
            Target = "In-Scope"
        Else
           Cells(Target.Row, Target.Column + 1) = Now() & " " & Application.UserName & ": " & Response
        End If
    End If
    Application.EnableEvents = True
End Sub
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
or if I have a list step up on new sheet called 'Mapping' A2:A4, with the following options - Yes, No, Damaged, Other.
So when the user selects 'Removed' on AY, they are given the following options to choose from.
Once they select an option, it appears in column AZ
Thanks
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,737
Messages
6,180,657
Members
452,992
Latest member
TokugawaIesuma

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top