PC Review


Reply
Thread Tools Rate Thread

afterupdate event in Excel

 
 
md903
Guest
Posts: n/a
 
      30th Nov 2008
I would like to add an AfterUpdate action to a cell to clear the contents of
a second cell. For example, if the contents of cell A1 changes, I want it to
clear the contents of cell B1. Cell A1 will be updated manually.
 
Reply With Quote
 
 
 
 
alf
Guest
Posts: n/a
 
      30th Nov 2008
On 30 nov, 07:32, md903 <md...@discussions.microsoft.com> wrote:
> I would like to add an AfterUpdate action to a cell to clear the contentsof
> a second cell. *For example, if the contents of cell A1 changes, I wantit to
> clear the contents of cell B1. *Cell A1 will be updated manually.


Use WorkSheet "Change" Event, and test the adress of the target cell:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.address = "$A$1" Then
Range("B1") = ""
End If
End Sub
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AFTERUPDATE Event Wayne Microsoft Access 3 18th May 2009 10:52 PM
afterupdate event Kate Microsoft Access 2 14th Jul 2008 02:54 PM
help with the afterupdate event Al Microsoft Access Form Coding 2 24th Jun 2008 06:19 PM
Is there an AfterUpdate event for excel combobox? T.G. Microsoft Excel Programming 1 17th Oct 2006 03:55 AM
Using the AfterUpdate event =?Utf-8?B?QmV0dGluYQ==?= Microsoft Access Getting Started 4 20th Aug 2004 12:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:46 AM.