PC Review


Reply
Thread Tools Rate Thread

clear contiguous fields with one keystroke

 
 
=?Utf-8?B?TWFyc2hhbGw=?=
Guest
Posts: n/a
 
      15th Nov 2007
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.
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      15th Nov 2007
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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a keystroke shortcut for "clear formatting" in 2003? msegrl104 Microsoft Word Document Management 1 25th Nov 2009 05:55 PM
Concatenate contiguous fields on one worksheet into 1 field on ano MargeB Microsoft Excel Programming 2 13th Oct 2009 12:36 AM
Copy and Paste LAST ROW of data: non-contiguous Row, contiguous Column Sam via OfficeKB.com Microsoft Excel Programming 8 5th Nov 2007 07:18 PM
Clear Fields =?Utf-8?B?R2Vvcmdl?= Microsoft Access Form Coding 3 5th Sep 2007 12:00 PM
Clear Fields Robert Microsoft Access Forms 1 19th May 2004 09:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:30 PM.