Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
1vagrowr
 
Posts: n/a
Default creating a reset button

I would like to clear values in select cells by pushing a "Reset Values"
button. How can I make one? Thanks for any help on this.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max
 
Posts: n/a
Default creating a reset button

Here's a simple example ..

Sample construct at:
http://www.savefile.com/files/3858780
ResetMultiCellRange_1vagrowr_misc.xls

Draw a Command Button from the Control Toolbox* toolbar on the sheet
*Activate it if necessary, via clicking: View Toolbars Control Toolbox

Right-click on the button View Code
Copy paste the code below into the code window on the right
(clear the defaults first)

Private Sub CommandButton1_Click()
Range("B2,B4,B6,D2,D4,D6").ClearContents
End Sub

Press Alt+Q to exit VBE and return to Excel

Click the "Exit Design Mode" icon** on the Control Toolbox Toolbar
**the one with the "triangle" pic

Test it out. Clicking the button will clear the multi-cell range:
B2,B4,B6,D2,D4,D6

--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"1vagrowr" wrote in message
...
I would like to clear values in select cells by pushing a "Reset Values"
button. How can I make one? Thanks for any help on this.



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
Establish Default Titles For Drop Windows And Reset Button travelersway Excel Discussion (Misc queries) 0 October 17th 05 12:31 PM
Establish Default Titles For Drop Windows And Reset Button travelersway New Users to Excel 0 October 17th 05 11:58 AM
Autofilter reset button Cheese Excel Discussion (Misc queries) 6 July 9th 05 06:39 PM
Reset Button in Excel? Jan C. Excel Worksheet Functions 3 July 2nd 05 02:08 AM
Creating button as cell jpizzle Excel Discussion (Misc queries) 1 June 1st 05 01:22 PM


All times are GMT +1. The time now is 04:12 PM.

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

About Us

"It's about Microsoft Excel"