View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default ADD A BUTTON TO A CELL TO DELETE A RANGE OF CELLS?

range("b1:b2,C17:d99,g13,z:z,105:105").clearconten ts

You don't need to select a range to clear it.

dow wrote:

How Can I do that for multiple cells that are not contiguous. I am a novice.
--
dow

"Mike" wrote:

From the forms toolbox put a button on your sheet and when the popup window
comes up click on new macro and add the following code.

Range("B1:B12").Select
Selection.ClearContents

Mike

"traveye" wrote:

I want to add a button to a cell wich will clear data in a range of cells.
example: click on cell A1 and it will clear data from cell b1 thru b12. Is
this possible?


--

Dave Peterson