Using a named range to update if/or in VBA
Posted by sid on October 05, 2001 2:16 PM
I am using the code below on numerous sheets. i want to be able to update all sheets by just changing a few cells in a named range, replacing all the or statements with the range, but I can't find a way to get it to work - any ides anyone - thanx
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Value = "ACo" Or Target.Value = "ACv" Or Target.Value = "ACw" Or Target.Value = "AF" Or Target.Value = "AT" Or Target.Value = "BT" Or Target.Value = "DM" Or Target.Value = "JM" Or Target.Value = "ML" Or Target.Value = "NO" Or Target.Value = "PT" Or Target.Value = "SB" Or Target.Value = "SS" Or Target.Value = "TJ" Then
Target.Offset(0, 1).Value = Date
End If