I have 2 Combo boxes in a workbook - one containing a list of numbers from 1 to 31 and the other containing the month of the year. I want to stop users selecting, the 30th & 31st of Feb and 31st of Apr, Jun, Sep & Nov (for obvious reasons) - which I guess can be done using data validation.
Can someone plesae assist me ?
I've tried using this formula ( k21 & i21 are the month & day cell links), but I want the message box to pop up as the user enters a 'rogue' day which doesn't appear to happen, unless you select the cell that the formula is in and put it into edit !
The formula I have tried is thus :
=if(k21=2, i21<=29, if(k21=4, i21<=30, if(k21=6, i21<=30, if(k21=9, i21<=30, if(k21=11, i21<=30))))
where 2=Feb, 4=Apr, 6=Jun, 9=Sep & 11=Nov
Please be aware I am a complete novice where VB us concerned so tread lightly if you can help.
Many thanks for at least reading this thread.
Bill
Can someone plesae assist me ?
I've tried using this formula ( k21 & i21 are the month & day cell links), but I want the message box to pop up as the user enters a 'rogue' day which doesn't appear to happen, unless you select the cell that the formula is in and put it into edit !
The formula I have tried is thus :
=if(k21=2, i21<=29, if(k21=4, i21<=30, if(k21=6, i21<=30, if(k21=9, i21<=30, if(k21=11, i21<=30))))
where 2=Feb, 4=Apr, 6=Jun, 9=Sep & 11=Nov
Please be aware I am a complete novice where VB us concerned so tread lightly if you can help.
Many thanks for at least reading this thread.
Bill