jonnyknowsbest
Technical User
I have a range of cells, E16 through H20. I only want to allow one of these cells to have a value at any one time.
Any ideas how i can achieve this?
Any ideas how i can achieve this?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Please be CLEAR, CONCISE and COMPLETE.I only want to allow one of these cells to have a value at any one time.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim r as Range
application.enableevents = false
For each r in [E16:H20]
if target.address <> r.address then
if target.value = r.value then r.clearcontents
end if
next
application.enableevents = true
End Sub