View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Illya Teideman Illya Teideman is offline
external usenet poster
 
Posts: 26
Default Restricting data entry to unique entries only in a specific range

I can restrict data entry to unique entries only in the range E7 to E500
using data validation:
=IF(COUNTIF($E$7:$E$500,E7)=1
However unless I lock down sheet to stop copying and pasting this quickly
becomes worthless. How do I accomplish the same thing in VBA? I need bullet
proof validation while leaving the sheet flexible enough to allow cutting and
pasting.