Thread: Clear Cell
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
bandy2000 bandy2000 is offline
external usenet poster
 
Posts: 26
Default Clear Cell

hi Tom,

no not active cell.
i have different worksheets and have to delete (clear) the complete contents
of
worksheets that are currently not active!
something like
Worksheets("TestSheet").Range.Cells.ClearContents
but this line doesn't work!


"Tom Ogilvy" wrote:

do you mean other than the activeCell
v = activecell.Value
cells.ClearContents
activeCell.Value = v

--
Regards,
Tom Ogilvy

"bandy2000" wrote in message
...
Hi
How can I clear all cells of a worksheet other than the active worksheet?

Thanks