Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Mariann
 
Posts: n/a
Default How do i clear a cell using a command button?

I need to know how to clear a cell using a command button. I can get it as
far as N/A but is there any way to stop the N/A showing?
  #2   Report Post  
Posted to microsoft.public.excel.misc
kassie
 
Posts: n/a
Default How do i clear a cell using a command button?

I don't know where oyu get the N/A from? Create a command button, right
click on it, select View Code, and enter the following: Range(<your range
eg"A1").ClearContents. Close the VBA editor, click on the Design icon, (the
one with the pencil, triangle and ruler), and click on the button. It will
clear the contents of the cell. I did not deal with naming the button etc
though.

"Mariann" wrote:

I need to know how to clear a cell using a command button. I can get it as
far as N/A but is there any way to stop the N/A showing?

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
resetting last cell jagdish.eashwar Excel Discussion (Misc queries) 11 March 31st 06 02:06 AM
Clear Cell Without Removing Formula Scott Excel Worksheet Functions 4 March 27th 06 12:07 AM
Instead of a negative number, I'd like to show zero... Dr. Darrell Excel Worksheet Functions 6 December 7th 05 08:21 PM
Clear Cell based on event w/o macro? Paul987 Excel Worksheet Functions 2 October 27th 05 08:44 PM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM


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