View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default clear data from selected cells

I assume you are looking of code and not how to add a button to a sheet

for each cell in Activesheet.UsedRange
if cell.Locked = False then
cell.ClearContents
end if
Next

--
Regards,
Tom Ogilvy


"Steve" wrote in message
...
Hello, I have a excel tempate for compiling data. How do I add a Control
button to clear data in unprotected cells only? Can you help? Steve