Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Run a macro when cell changes (due to calculation!)

Goodday,

I tried to use the worksheet change functions, yet they only seem to
act when you actively enter into a certain cell.

However i need to call a certain macro when the output in a certain
cell changes due to the change in the specific if function. Therefore
without user intervention.

Is there any way to do this?

Kind regards,

Ivo Geijsen


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Run a macro when cell changes (due to calculation!)

You might try using a worksheet calculate event and if it doesn't calculate
on the formula change, add =Now() somewhere on the worksheet.

--
Don Guillett
SalesAid Software

"Tornados" wrote in message
...
Goodday,

I tried to use the worksheet change functions, yet they only seem to
act when you actively enter into a certain cell.

However i need to call a certain macro when the output in a certain
cell changes due to the change in the specific if function. Therefore
without user intervention.

Is there any way to do this?

Kind regards,

Ivo Geijsen


---
Message posted from
http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Run a macro when cell changes (due to calculation!)

Not really.

the calculate event fires when a calculation occurs (which is what you say
change your cell), but there is not information passed on which cell caused
the sheet to recalculate. You could check the value of your cell in the
calculate event - however, if you only want the macro to run once - based on
a change, then it would be more complex, requiring you to store the old
value and make a comparison.

If the changes are caused by data coming in from a DDE connection, then you
could use the SetLinkOnData property. In Excel 2000 and later, however, the
Change event should fire in this case as well.

--
regards,
Tom Ogilvy

"Tornados" wrote in message
...
Goodday,

I tried to use the worksheet change functions, yet they only seem to
act when you actively enter into a certain cell.

However i need to call a certain macro when the output in a certain
cell changes due to the change in the specific if function. Therefore
without user intervention.

Is there any way to do this?

Kind regards,

Ivo Geijsen


---
Message posted from http://www.ExcelForum.com/



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Run a macro when cell changes (due to calculation!)

Well there is a dde feed that changes certain values. however, the cel
itself changes because of an if function that (because of the dd
change) changes its value..

And Yes indeed i would like a macro to be run one time when the valu
changes....

Thanks for the swift reaction though :). I hope someone can help me ou
here..

Thanks! Iv

--
Message posted from http://www.ExcelForum.com

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
If VBA Macro for Tiered Calculation Jeff Excel Discussion (Misc queries) 2 February 17th 09 04:35 PM
macro to go to cell based upon a calculation MARK M Excel Discussion (Misc queries) 7 November 30th 08 01:28 AM
Macro Help for a BIG Calculation Ananth Excel Discussion (Misc queries) 1 July 27th 07 09:29 AM
Product calculation macro MikeD1224 New Users to Excel 1 June 15th 07 10:36 PM
MACRO TO SET THE AUTOMATIC CALCULATION OB Excel Discussion (Misc queries) 2 November 15th 06 05:36 PM


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