Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default clear contiguous fields with one keystroke

Excel 2003 Using spreadsheet in modeling application. Need to reenter 14
new parameters frequently. They are contiguous. Would like to hit one key
and have all input fields reset to blank or zero.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default clear contiguous fields with one keystroke

You could drop a button from the Forms toolbar on the worksheet that has a macro
assigned to it.

Option Explicit
Sub ClearZeroCells()
with activesheet
.range("a1,b9,c3:c5").clearcontents
.range("a3,b12,d1:d5").value = 0
end with
end sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Marshall wrote:

Excel 2003 Using spreadsheet in modeling application. Need to reenter 14
new parameters frequently. They are contiguous. Would like to hit one key
and have all input fields reset to blank or zero.


--

Dave Peterson
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
CLear Data Entry Form Fields Tony Excel Discussion (Misc queries) 2 January 21st 09 11:57 PM
How do I put a delete button on excel that will clear the fields? Dave Excel Worksheet Functions 3 August 1st 07 11:34 PM
A Fix - Pivottable - Added calculated fields and now can't clear pivot Andreww Excel Programming 0 June 1st 07 04:38 PM
How do I Clear old Pivot Table Fields that no longer exist snowman Excel Discussion (Misc queries) 2 January 9th 07 05:52 PM
How do I Clear ALL unprotected data entry fields in a protected sh bobreese Excel Programming 5 October 17th 05 01:47 PM


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