Override a list selection based on another cell value

ToniB123

New Member
Joined
Mar 8, 2021
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I have a drop down list of 5 options to track case status in cell E1 of sheet 5 (active, paused, waiting, closed, declined). On sheet 6, cell F1, staff are asked to enter a closure date. I am sure they will forget to go back and change their case status selection to 'closed' so I would like E1 to override whatever the current selection is and enter 'closed' as soon as a date is entered in F1, sheet 6 but I am struggling to make this work with the data validation still turned on - any ideas?
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
hi and welcome to MrExcel
you may need to use a worksheet_change macro here, because sheet formulas would get confused changing selections in a dropdown.
What is the name of your drop down box on sheet 5
 
Upvote 0
hi and welcome to MrExcel
you may need to use a worksheet_change macro here, because sheet formulas would get confused changing selections in a dropdown.
What is the name of your drop down box on sheet 5
thanks, the drop down is 'status'
 
Upvote 0
do you know how to get to the VBA window? if yes, then place this in the code for sheet 6

VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = "$F$1" Then
        If IsDate(Target.Value) Then
            Sheets("Sheet 5").Cells(1, 5) = "closed"
        End If
    End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,834
Messages
6,121,876
Members
449,056
Latest member
ruhulaminappu

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