Hi everyone I'm Josh new here I'm designing a quotation sheet that has to have validation so incorrect data cannot be inputted, this is going to be long-winded but stay with me.
I'm trying to create a code in vba that checks 2 cells and clears one if they both don't meet certain requirements let me explain:
I need a code that will look into lets say Cell 'A1' and Cell 'B3', and if cell A1 equals 2 and cell B3 is greater and equals 50 so it is 50 and higher, then B3 will be cleared.
The scenario is basically this: you can choose 5 rooms 1,2,3,4,5 and in those rooms you can only fit a certain amount of people say 15 in room 1, 60 in room 2 and so on, so I'm trying to make sure that if a cell is displaying room 3 then the amount of people cannot go over 50 or if it does then the cell is cleared
I'm trying to create a code in vba that checks 2 cells and clears one if they both don't meet certain requirements let me explain:
I need a code that will look into lets say Cell 'A1' and Cell 'B3', and if cell A1 equals 2 and cell B3 is greater and equals 50 so it is 50 and higher, then B3 will be cleared.
The scenario is basically this: you can choose 5 rooms 1,2,3,4,5 and in those rooms you can only fit a certain amount of people say 15 in room 1, 60 in room 2 and so on, so I'm trying to make sure that if a cell is displaying room 3 then the amount of people cannot go over 50 or if it does then the cell is cleared