Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / September 2005

Tip: Looking for answers? Try searching our database.

How do I clear the contents of one cell from another cell?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RonB - 26 Sep 2005 19:19 GMT
I would like to clear the contents of a cell in an Excel worksheet from
another cell in the same worksheet based on the content of that other cell.
Stating it in words:  if cell A2 equals 1 then set cell A1 equal to "blank".
Is there a simple way to do this? I am using cell A1 for input by the user
therefore A1 cannot contain an equation.
David Hepner - 26 Sep 2005 19:33 GMT
You could use this VBA code:

Private Sub Worksheet_Change(ByVal Target As Range)
If Range("A2").Value = 1 Then Range("A1").Value = ""
End Sub

> I would like to clear the contents of a cell in an Excel worksheet from
> another cell in the same worksheet based on the content of that other cell.
> Stating it in words:  if cell A2 equals 1 then set cell A1 equal to "blank".
> Is there a simple way to do this? I am using cell A1 for input by the user
> therefore A1 cannot contain an equation.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.