On Got Focus, Clear Cells
Hi Suzanne,
I take it you have Option Explicit at the top of the module, which is good,
and I forgot to declare 'nt' like this -
Dim nt as Long
I wasn't sure if you want to clear cells if any cell in column A or E is
selected, or only when selecting cells in those columns with a valadation
list, which is what is looked for in the routine I posted. If that's what
you want, for clarity could change -
If nt = 3 Then
to
If nt = xlValidateList Then
Regards,
Peter T
"Suzanne" wrote in message
...
Thanks VERY much! Jim, your formula did the trick.
Peter: I tried out your formula (I think I got it in right); but came up
with a var not defined error.
"Suzanne" wrote:
I can't quite figure out the right code for this:
On selection (GotFocus) of a validation drop-down in Column A, clear
cells
in Columns B, D, & E; OR on selection (GotFocus) of the validation
drop-down
in Column E, clear cells in Columns A, B, & D
Only the cells on the row with focus should be cleared
Thanks -- Suzanne
|