Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default afterupdate event in Excel

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
alf alf is offline
external usenet poster
 
Posts: 5
Default afterupdate event in Excel

On 30 nov, 07:32, md903 wrote:
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.


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
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
Is there an AfterUpdate event for excel combobox? T.G. Excel Programming 1 October 17th 06 03:55 AM
Trigger copy on AfterUpdate event Snowsride Excel Programming 1 February 23rd 06 08:50 PM
PivotField AfterUpdate event? Snowsride Excel Programming 0 January 11th 06 01:12 PM
AfterUpdate Event not Running Craig[_21_] Excel Programming 10 November 6th 05 10:28 PM
AfterUpdate bforster1[_26_] Excel Programming 1 November 6th 04 07:16 PM


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