Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
dow dow is offline
external usenet poster
 
Posts: 7
Default Excel 2003 - clear button

I am making a spread sheet that will be used as a calculator. Each use
requires numerous entries. Is there a way to make a clear button (or another
method) that will simultaneously clear all of the entries from a previous
use? This spread sheet will also be used on Excel 97.
Thank you.
--
dow
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Excel 2003 - clear button

hi,
drop a command button on the sheet and put code in it similar to this.
Private Sub CommandButton1_Click()
Range("b2,b4,b6,d2,d4,d6").ClearContents
End Sub
you may have to removed my cells and add all of the cells you want to clear
on your sheet.

Regards
FSt1
"dow" wrote:

I am making a spread sheet that will be used as a calculator. Each use
requires numerous entries. Is there a way to make a clear button (or another
method) that will simultaneously clear all of the entries from a previous
use? This spread sheet will also be used on Excel 97.
Thank you.
--
dow

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Excel 2003 - clear button

F5SpecialConstantsOK

EditCleat Contents.

You could record a macro whilst doing this and attach the macro to a button.


Gord Dibben MS Excel MVP

On Sun, 4 Nov 2007 07:58:01 -0800, dow wrote:

I am making a spread sheet that will be used as a calculator. Each use
requires numerous entries. Is there a way to make a clear button (or another
method) that will simultaneously clear all of the entries from a previous
use? This spread sheet will also be used on Excel 97.
Thank you.


  #4   Report Post  
Posted to microsoft.public.excel.misc
dow dow is offline
external usenet poster
 
Posts: 7
Default Excel 2003 - clear button

Thank you for your help. Could you help me again? I have 3 more questions.
1. After the cells are cleared, all of the cleared cells remain selected.
How do I modify the macro so that the only first cleared cell is selected
after all the cells are cleared?
2. When the workbook is opened a macro warning appears. Can the warning be
safely eliminated?
3. What is the difference between Sub and Private Sub?
Thank you.
--
dow


"FSt1" wrote:

hi,
drop a command button on the sheet and put code in it similar to this.
Private Sub CommandButton1_Click()
Range("b2,b4,b6,d2,d4,d6").ClearContents
End Sub
you may have to removed my cells and add all of the cells you want to clear
on your sheet.

Regards
FSt1
"dow" wrote:

I am making a spread sheet that will be used as a calculator. Each use
requires numerous entries. Is there a way to make a clear button (or another
method) that will simultaneously clear all of the entries from a previous
use? This spread sheet will also be used on Excel 97.
Thank you.
--
dow

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
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
Clear Button JudyP Excel Discussion (Misc queries) 2 August 5th 06 08:01 PM
How do I clear the recent document list in Excel 2003 viewer? vnavna Excel Discussion (Misc queries) 1 May 14th 06 01:20 AM
Can't get sensible clear colours in Excel 2003 chrisco Excel Worksheet Functions 1 September 22nd 05 04:44 PM
How do I insert a 'clear all' button in excel? Nick Excel Worksheet Functions 3 December 13th 04 11:59 AM


All times are GMT +1. The time now is 06:37 AM.

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"