#1   Report Post  
Atlanta Rudy
 
Posts: n/a
Default Buttons

Hi all,

I want to have a button clear the contents of a list of cells. Can anyone
help me?

Thanks,

Rudy
  #2   Report Post  
Harald Staff
 
Posts: n/a
Default

Hi Rudy

Assign a macro like this to the thing:

Sub ClearMyArea()
Sheets(1).Range("A2:C14").ClearContents
End Sub

HTH. Best wishes Harald

"Atlanta Rudy" skrev i melding
...
Hi all,

I want to have a button clear the contents of a list of cells. Can anyone
help me?

Thanks,

Rudy



  #3   Report Post  
Ola
 
Posts: n/a
Default

Sure, Excel has a Icon button just for that!

Here is how to get it:
Right click on your Icon bar in Excel. Choose Customize... (at the bottom of
the list).
Select tab 'Commands'. Select 'Edit' under Catagories. Now scroll down under
Commands until you find the button 'Clear Contentes' (looks like an eraser).
Drag and Drop it in your Excel Icon bar.

Done!

Ola Sandstrom

  #4   Report Post  
keepITcool
 
Posts: n/a
Default


Rudy

maybe simpler than writing your own macro is to use a standard menu
button.

Right click toolbars
Select Customize
Select 2nd tab
Select Edit category
Search for the ClearContents item and drag it to a toolbar.

--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Harald Staff wrote :

Hi Rudy

Assign a macro like this to the thing:

Sub ClearMyArea()
Sheets(1).Range("A2:C14").ClearContents
End Sub

HTH. Best wishes Harald

"Atlanta Rudy" skrev i melding
...
Hi all,

I want to have a button clear the contents of a list of cells. Can
anyone help me?

Thanks,

Rudy

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
Spreadsheet "buttons" that cannot be removed JerryH Excel Discussion (Misc queries) 0 January 21st 05 10:01 PM
What happened to Subscript and Superscript Buttons in Excel? Patrick Charts and Charting in Excel 0 January 12th 05 04:33 PM
How do I hide tab scrolling buttons? dlove10486_1999 Excel Discussion (Misc queries) 1 January 5th 05 04:43 PM
Can I use more than one set of option buttons in a worksheet? Ray Excel Worksheet Functions 2 November 22nd 04 03:37 PM
VBA: Disable Frame and Radio Buttons based on Another Radio Button Being True Mcasteel Excel Worksheet Functions 2 October 29th 04 07:06 PM


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