Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 846
Default Change events

I'm still relatively new with macros - my question is as follows

A macro that has is set up as a "Worksheet" - "Change" will trigger anytime
a cell is changed. Can I specifically identify one cell and if this cell's
value changes - then additional logic would occur?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Change events

In the event, Target holds a reference to the trigger cell/cells

if Target.count 1 then exit sub
if Target.Address = "$B$1" then


End if

--
Regards,
Tom Ogilvy


"Brad" wrote:

I'm still relatively new with macros - my question is as follows

A macro that has is set up as a "Worksheet" - "Change" will trigger anytime
a cell is changed. Can I specifically identify one cell and if this cell's
value changes - then additional logic would occur?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 846
Default Change events

I really do appreciate all the help this site provides

Thanks Tom!!

"Tom Ogilvy" wrote:

In the event, Target holds a reference to the trigger cell/cells

if Target.count 1 then exit sub
if Target.Address = "$B$1" then


End if

--
Regards,
Tom Ogilvy


"Brad" wrote:

I'm still relatively new with macros - my question is as follows

A macro that has is set up as a "Worksheet" - "Change" will trigger anytime
a cell is changed. Can I specifically identify one cell and if this cell's
value changes - then additional logic would occur?

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
Cell change events Richard Excel Discussion (Misc queries) 2 May 16th 07 04:18 PM
Worksheet Change Events Nigel Excel Programming 2 May 1st 07 01:32 PM
Worksheet Change Events Philip J Smith Excel Programming 4 March 30th 07 12:28 PM
Understanding change events xhat Excel Programming 6 July 28th 06 02:44 PM
Multiple change events on same sheet JG Scott Excel Programming 4 January 19th 06 03:56 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"