Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default macro launched when condition is true

Hi

I'm wonder if the following sceario is possible:

I have got macro and I want this macro be launched whenever the cell(1,1) =
5 (or when this cell is changed)

Thank you for your proposals.

Best Regards

D.Tomon


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default macro launched when condition is true

If it will hold a formula, then you could use the Calculate event to check -
but you would have to use a static variable to record the old variable to run
only when it has changed.

If it will hold a constant value which will be edited by the user, then you
could use the Change event

See Chip Pearson's page on events for an overview
http://www.cpearson.com/excel/events.htm

--
Regards,
Tom Ogilvy


"Dariusz Tomon" wrote:

Hi

I'm wonder if the following sceario is possible:

I have got macro and I want this macro be launched whenever the cell(1,1) =
5 (or when this cell is changed)

Thank you for your proposals.

Best Regards

D.Tomon



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
How to find first row where condition is true? WhatsUp31415 Excel Discussion (Misc queries) 6 May 21st 09 12:11 PM
result if a condition is NOT true? Roland Excel Worksheet Functions 2 March 7th 07 09:25 AM
TRUE condition??? pmguerra Excel Discussion (Misc queries) 2 June 5th 06 04:27 PM
Save If Condition is true igorek Excel Programming 2 July 12th 05 11:19 PM
How Do I Hide A Row (if a condition is true) using a Macro ? Anthony Fantone Excel Worksheet Functions 1 June 16th 05 04:54 PM


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