ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   ResetFields (https://www.excelbanter.com/excel-discussion-misc-queries/147798-resetfields.html)

kyoshirou

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!

Toppers

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!



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com