View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Dave F Dave F is offline
external usenet poster
 
Posts: 2,574
Default trigger data validation warning

Can the Data Validation tool fire if the cell has a formula rather than a
constant?

B24 has the formula =INDEX(C3:M13,MATCH(B18,B3:B13,0),MATCH(B21,C2:M2, 0))
which can return a #N/A error if the user inputs values in B18 and B21 that
are not in B3:B13 and C2:M2, respectively. So I was hoping that if Data
Validation was set to require a whole number, I could get a warning text box
to pop up if #N/A is returned. Apparently, XL doesn't like that.

Is there a VBA-based solution to this?

Dave

--
A hint to posters: Specific, detailed questions are more likely to be
answered than questions that provide no detail about your problem.