Mark date when a drop down list option is selected

t_faragher13

New Member
Joined
Apr 5, 2011
Messages
12
I have a column with validation rules that only allow for the drop down list options to be selected. This is a live document to track the progress of particular actions.
I have date columns for each selection option. I would like a macro that adds the date to the appropriate column when each option is selected.
The drop down list column is F:F and each date column will be paced after this one.
Can anyone help with this?

Thanks

Tom :confused:
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Try adding the line in red

Rich (BB code):
Private Sub Worksheet_Change(ByVal Target As Range)
Dim i As Long
If Target.Count > 1 Then Exit Sub
If Target.Column = 6 Then
    Application.EnableEvents = False
    Select Case Target.Value
        Case "Reviewed": i = 1
        Case "DCR raised": i = 2
        Case "DCN awaiting approval": i = 3
        Case "Issued and controlled in SDD": i = 4
        Case "Issued, needs to go onto SDD:": i = 5
        Case "Being created": i = 6
    End Select
    Target.Offset(, i).Value = Date
    Application.EnableEvents = True
End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,947
Latest member
Gerry_F

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