#1   Report Post  
Posted to microsoft.public.excel.misc
1vagrowr
 
Posts: n/a
Default reset cells

Is there a way to make a "reset" button to clear only select cells?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave
 
Posts: n/a
Default reset cells

Hi 1vagrowr

Assuming you are selecting cells manually, why don't you just use the delete
button?

Dave.


"1vagrowr" wrote in message
...
Is there a way to make a "reset" button to clear only select cells?



  #3   Report Post  
Posted to microsoft.public.excel.misc
Max
 
Posts: n/a
Default reset cells

There were 2 responses (from me and Bob Phillips) to your earlier 2
identical questions in this newsgroup some 3 days ago, which have not
received any feedback from you in the threads.:

a, http://tinyurl.com/bmrs5
(Bob Phillips)

b. http://tinyurl.com/bqg7y
(Max)
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"1vagrowr" wrote in message
...
Is there a way to make a "reset" button to clear only select cells?



  #4   Report Post  
Posted to microsoft.public.excel.misc
Norman Jones
 
Posts: n/a
Default reset cells

Hi Ivagrwr,

In addition to the responses indicated by Max, if the cells to be cleared
are constant, try assigning the following macro to your button:

'=============
Sub ClearCells()
Dim Rng As Range

Set Rng = Range("A1:A20") '<<==== CHANGE

Rng.Clear

End Sub
'<<=============

If your intention is to delete the contents but retain formats, change:

Rng.Clear

to:

Rng.ClearContents

If you are not familiar with macros, you may wish to visit David McRitchie's
'Getting Started With Macros And User Defined Functions' at:

http://www.mvps.org/dmcritchie/excel/getstarted.htm


---
Regards,
Norman



"1vagrowr" wrote in message
...
Is there a way to make a "reset" button to clear only select cells?



  #5   Report Post  
Posted to microsoft.public.excel.misc
David
 
Posts: n/a
Default reset cells

Norman Jones wrote

Sub ClearCells()
Dim Rng As Range

Set Rng = Range("A1:A20") '<<==== CHANGE

Rng.Clear

End Sub


Jumping in late here so don't know the OP's intent, but it seems fair to
point out that .Clear as opposed to .ClearContents clears everything,
including borders, Conditional Formatting, etc.

--
David


  #6   Report Post  
Posted to microsoft.public.excel.misc
Norman Jones
 
Posts: n/a
Default reset cells

Hi David,

Jumping in late here so don't know the OP's intent, but it seems fair to
point out that .Clear as opposed to .ClearContents clears everything,
including borders, Conditional Formatting, etc.


Hence my comment to the OP:

If your intention is to delete the contents but retain formats, change:

Rng.Clear

to:

Rng.ClearContents


It is certainly fair to comment, but it is undoubtedly misleading to excise
the section of my response most directly pertinent to your comment.


---
Regards,
Norman



"David" wrote in message
...
Norman Jones wrote

Sub ClearCells()
Dim Rng As Range

Set Rng = Range("A1:A20") '<<==== CHANGE

Rng.Clear

End Sub


Jumping in late here so don't know the OP's intent, but it seems fair to
point out that .Clear as opposed to .ClearContents clears everything,
including borders, Conditional Formatting, etc.

--
David



  #7   Report Post  
Posted to microsoft.public.excel.misc
David
 
Posts: n/a
Default reset cells

Norman Jones wrote

It is certainly fair to comment, but it is undoubtedly misleading to
excise the section of my response most directly pertinent to your
comment.


Apologies. Totally missed that section. It was 5:00am and my eyes weren't
working yet.

--
David
  #8   Report Post  
Posted to microsoft.public.excel.misc
1vagrowr
 
Posts: n/a
Default reset cells

Sorry, guys. The post wasn't displaying where I posted it (Excel general
?s). I happened across it just now when I displayed all threads.

"Max" wrote:

There were 2 responses (from me and Bob Phillips) to your earlier 2
identical questions in this newsgroup some 3 days ago, which have not
received any feedback from you in the threads.:

a, http://tinyurl.com/bmrs5
(Bob Phillips)

b. http://tinyurl.com/bqg7y
(Max)
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"1vagrowr" wrote in message
...
Is there a way to make a "reset" button to clear only select cells?




  #9   Report Post  
Posted to microsoft.public.excel.misc
Max
 
Posts: n/a
Default reset cells

Don't know what happened, but trust that you've got what you wanted since,
from the many responses provided ..
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"1vagrowr" wrote in message
...
Sorry, guys. The post wasn't displaying where I posted it
(Excel general ?s). I happened across it just now
when I displayed all threads.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do you "select locked cells" w/o "select unlocked cells"? princejohnpaulfin Excel Discussion (Misc queries) 3 July 16th 05 03:53 AM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 2 May 2nd 05 08:53 AM
Counting only active cells Sac73 Excel Discussion (Misc queries) 16 April 4th 05 05:49 AM
Help adding text values Texas-DC_271 Excel Worksheet Functions 7 January 15th 05 11:14 PM
Convert data type of cells to Text,Number,Date and Time Kevin Excel Worksheet Functions 1 December 31st 04 12:57 PM


All times are GMT +1. The time now is 09:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"