Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Using an action button.
How do I insert a button into a spreadsheet that will "clear" all values from
cells that are intended for inputting data, but not clear other cells that are not meant for data input? As part of this I suppose I need some way to designate which cells are meant for data input and which ones are not. Thanks, MichaelZ |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Using an action button.
Simplest way. Hold down the control key while selecting each cell you want
to cleargoto the namebox just to the left of the formula box and type in rngtoclearfire this macro assigned to a shape or forms button. Sub clearcells() Range("rngtoclear").ClearContents End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "MichaelZ" wrote in message ... How do I insert a button into a spreadsheet that will "clear" all values from cells that are intended for inputting data, but not clear other cells that are not meant for data input? As part of this I suppose I need some way to designate which cells are meant for data input and which ones are not. Thanks, MichaelZ |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Using an action button.
Ran into a little problem...
Some of the input cells were merged cells, so an error message reading, "Cannot change part of a merged cell" was generated. Is there any way around this? I still want to be able to clear the input cells, even if they are merged cells. Thanks. "Don Guillett" wrote: Simplest way. Hold down the control key while selecting each cell you want to cleargoto the namebox just to the left of the formula box and type in rngtoclearfire this macro assigned to a shape or forms button. Sub clearcells() Range("rngtoclear").ClearContents End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "MichaelZ" wrote in message ... How do I insert a button into a spreadsheet that will "clear" all values from cells that are intended for inputting data, but not clear other cells that are not meant for data input? As part of this I suppose I need some way to designate which cells are meant for data input and which ones are not. Thanks, MichaelZ . |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Using an action button.
Thanks Don. This works great.
Michael "MichaelZ" wrote: How do I insert a button into a spreadsheet that will "clear" all values from cells that are intended for inputting data, but not clear other cells that are not meant for data input? As part of this I suppose I need some way to designate which cells are meant for data input and which ones are not. Thanks, MichaelZ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Action button | Excel Discussion (Misc queries) | |||
How to use an action button for formulas? | Excel Discussion (Misc queries) | |||
Shift + toolbar button action in Excel 2007 | Excel Discussion (Misc queries) | |||
Undo delete button action | Excel Worksheet Functions | |||
How do I create an action button in excel? | Excel Discussion (Misc queries) |