Hi,
I have the following formula in a list via data validation in column E.
It all works fine if the operator enters the data in correctly but if they make a mistake or change their mind then the formula doesn't keep up with the changes.
I have tried the following excel refresh suggestions without any success:
To make it work I go into data validation and select the formula and then press ok and that seems to refresh the cell.
Now here is what I need help with please:
I have recorded a macro to do the "refresh" but it only works for that cell. I need help to change the following macro to the active cell or better still the first empty cell in column E.
Here is the macro:
Any help would be much appreciated.
Thanks
Dan
I have the following formula in a list via data validation in column E.
Code:
=IF(OR(D243=Value1),List1,IF(OR(D243=Value2),List144,IF(OR(D243=Value3),List192,IF(OR(D243=Value4),ListM,IF(OR(D243=Value5),Azera,IF(OR(D243=Value6),ListMM,IF(OR(D243=ValueK),ListK,IF(OR(D243=Value7),List216))))))))
It all works fine if the operator enters the data in correctly but if they make a mistake or change their mind then the formula doesn't keep up with the changes.
I have tried the following excel refresh suggestions without any success:
- To refresh the current cell - press F2 + Enter
- To refresh the current tab - press Shift + F9
- To refresh the entire workbook - press F9
- CTRL+ALT+SHIFT+F9
To make it work I go into data validation and select the formula and then press ok and that seems to refresh the cell.
Now here is what I need help with please:
I have recorded a macro to do the "refresh" but it only works for that cell. I need help to change the following macro to the active cell or better still the first empty cell in column E.
Here is the macro:
Code:
Sub Macro2()'
' Macro2 Macro
'
'
Application.Run "'PO COVER 2019.xlsm'!UnprotectTheActiveSheet"
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:= _
"=IF(OR(D243=Value1),List1,IF(OR(D243=Value2),List144,IF(OR(D243=Value3),List192,IF(OR(D243=Value4),ListM,IF(OR(D243=Value5),Azera,IF(OR(D243=Value6),ListMM,IF(OR(D243=ValueK),ListK,IF(OR(D243=Value7),List216))))))))"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
Application.Run "'PO COVER 2019.xlsm'!ProtectTheActiveSheet"
End Sub
Any help would be much appreciated.
Thanks
Dan