Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 55
Default To Clear number in the cell(s)

Hi -

I'm interested in clearing cell's number using a 'button', will macro
program work?
I'm not sure how to begin.

For Example:

A Press a 'Button' will clear all number
in column A.
$10
$20
$30
Total $60

Thanks,
Soth


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default To Clear number in the cell(s)

Why not select the column and tap delete or am I missing something

"Soth" wrote:

Hi -

I'm interested in clearing cell's number using a 'button', will macro
program work?
I'm not sure how to begin.

For Example:

A Press a 'Button' will clear all number
in column A.
$10
$20
$30
Total $60

Thanks,
Soth


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default To Clear number in the cell(s)

Is the Total in A4 a formula you want to keep and delete the numbers in
A1:A3?

Simply select and delete A1:A3

Or select column A and F5SpecialConstantsOK

EditDelete

Record a macro whilst doing this if you want a macro.


Gord Dibben MS Excel MVP

On Fri, 16 Oct 2009 13:10:01 -0700, Soth
wrote:

Hi -

I'm interested in clearing cell's number using a 'button', will macro
program work?
I'm not sure how to begin.

For Example:

A Press a 'Button' will clear all number
in column A.
$10
$20
$30
Total $60

Thanks,
Soth



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 55
Default To Clear number in the cell(s)

Mike -

I'm constantly changing numbers and I don't like to highlight all cell and
delete, but rather press a button to clear at once.

Sothea

"Mike H" wrote:

Why not select the column and tap delete or am I missing something

"Soth" wrote:

Hi -

I'm interested in clearing cell's number using a 'button', will macro
program work?
I'm not sure how to begin.

For Example:

A Press a 'Button' will clear all number
in column A.
$10
$20
$30
Total $60

Thanks,
Soth


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default To Clear number in the cell(s)

Hi,

it seems like overkill to me but put a button on your sheet, I used the
FORMS toolbax and enter this code. It will clear the column with the active
cell in. If it's always column A use

Sub Button1_Click()
ActiveCell.EntireColumn.ClearContents
End Sub

If it's always column A use

Sub Button1_Click()
Columns(1).ClearContents
End Sub

Mike

"Soth" wrote:

Mike -

I'm constantly changing numbers and I don't like to highlight all cell and
delete, but rather press a button to clear at once.

Sothea

"Mike H" wrote:

Why not select the column and tap delete or am I missing something

"Soth" wrote:

Hi -

I'm interested in clearing cell's number using a 'button', will macro
program work?
I'm not sure how to begin.

For Example:

A Press a 'Button' will clear all number
in column A.
$10
$20
$30
Total $60

Thanks,
Soth




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default To Clear number in the cell(s)

Sub clearnums()
With ActiveSheet.UsedRange
.SpecialCells(xlCellTypeConstants, 1).ClearContents
End With
End Sub

Assign to a button.


Gord

On Fri, 16 Oct 2009 13:41:01 -0700, Soth
wrote:

Mike -

I'm constantly changing numbers and I don't like to highlight all cell and
delete, but rather press a button to clear at once.

Sothea

"Mike H" wrote:

Why not select the column and tap delete or am I missing something

"Soth" wrote:

Hi -

I'm interested in clearing cell's number using a 'button', will macro
program work?
I'm not sure how to begin.

For Example:

A Press a 'Button' will clear all number
in column A.
$10
$20
$30
Total $60

Thanks,
Soth



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default To Clear number in the cell(s)

What about protecting all the other cells in the workbook (that you don't
want to clear), then selcting the entire worksheet and deleing?

"Gord Dibben" wrote:

Is the Total in A4 a formula you want to keep and delete the numbers in
A1:A3?

Simply select and delete A1:A3

Or select column A and F5SpecialConstantsOK

EditDelete

Record a macro whilst doing this if you want a macro.


Gord Dibben MS Excel MVP

On Fri, 16 Oct 2009 13:10:01 -0700, Soth
wrote:

Hi -

I'm interested in clearing cell's number using a 'button', will macro
program work?
I'm not sure how to begin.

For Example:

A Press a 'Button' will clear all number
in column A.
$10
$20
$30
Total $60

Thanks,
Soth



.

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
Transfer a name from one cell to another but leave clear if clear? Scoober Excel Worksheet Functions 3 May 22nd 09 02:55 AM
How do I clear a cell soconfused Excel Worksheet Functions 4 March 5th 08 07:27 PM
clear the clear the web page email attachment lines MCrider Excel Discussion (Misc queries) 0 November 11th 07 10:05 PM
how can I clear an apostrophy in front of number in excel KCESS New Users to Excel 4 September 4th 06 10:39 AM
Clear cell when value is 0 carlos martinez New Users to Excel 4 June 4th 05 07:52 PM


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