Hi
Is it possible to put the code into 1 line like my first line is? When I tried this, only the first cell filled in.
So if any one of these cells is blank, "Spare" will fill in.
Is it possible to put the code into 1 line like my first line is? When I tried this, only the first cell filled in.
So if any one of these cells is blank, "Spare" will fill in.
VBA Code:
If Range("C5,E5,G5,I5,K5,M5") = "" Then Range("C5,E5,G5,I5,K5,M5") = "Spare"
If Range("C5") = "" Then Range("C5") = "Spare"
If Range("E5") = "" Then Range("E5") = "Spare"
If Range("G5") = "" Then Range("G5") = "Spare"
If Range("I5") = "" Then Range("I5") = "Spare"
If Range("K5") = "" Then Range("K5") = "Spare"
If Range("M5") = "" Then Range("M5") = "Spare"
/CODE]
TIA