#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 133
Default ResetFields

can i have a button called "Reset"
upon clicked on Reset, all the data fill in all the cells will be reset to
blank.

A B C D
1 2 3 4 Reset

become this:
A B C D



Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default ResetFields

Using FORMS toobar, select Button and assign macro "RESET" (see below):

Sub Reset()
Selection.ClearContents
End Sub


Highlight fields to be reset and click RESET. If you want to be very
specific about SELECTION, change to a range:

Sub Reset()
Range("A2:D4").ClearContents
End Sub

HTH

"kyoshirou" wrote:

can i have a button called "Reset"
upon clicked on Reset, all the data fill in all the cells will be reset to
blank.

A B C D
1 2 3 4 Reset

become this:
A B C D



Thanks!

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



All times are GMT +1. The time now is 04:27 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"