Thank you for the response. Unfortunately, the first code doesn't work on
protected sheets. The second code started to work but stopped when it hit a
merged cell. I get "Run time error '1004': Cannot change part of a merged
cell." Do you know of a way around that?
Thanks again, Bernie
"p45cal" wrote:
>
> If the cells are for direct entry it's unlikely they'll have a formula
> in so:
>
> Range("E9:H33").SpecialCells(xlCellTypeConstants,
> 7).ClearContents
>
> otherwise to detect unlocked cells:
>
> For Each cll In Range("E9:H33").Cells
> If Not cll.Locked Then cll.ClearContents
> Next cll
>
>
> --
> p45cal
>
> *p45cal*
> ------------------------------------------------------------------------
> p45cal's Profile: http://www.thecodecage.com/forumz/member.php?userid=558
> View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=120852
>
>