rhino4eva
Active Member
- Joined
- Apr 1, 2009
- Messages
- 262
- Office Version
- 2010
- Platform
- Windows
I have a spread sheet that has 3 columns by 96 rows i need a vba macro to check data validity. i would normally be able to sort it out but i am unsure how to implement an "and" & "or" in the logic
a b c
1 123 x x ok
2 124 x ok
3 125 bad
4 x bad
5 x x bad
etc
i need to scan from row 1 to row 96 if there is an entry in column "a" there must be entries in "b" or "c" but if no entry in "a" there should not be in "b" or "c" .
the validation outcome could be reported by a msgbox
if anyone has any ideas i would be really grateful
a b c
1 123 x x ok
2 124 x ok
3 125 bad
4 x bad
5 x x bad
etc
i need to scan from row 1 to row 96 if there is an entry in column "a" there must be entries in "b" or "c" but if no entry in "a" there should not be in "b" or "c" .
the validation outcome could be reported by a msgbox
if anyone has any ideas i would be really grateful