RTD value changes not triggering worksheet change event

D

DTM

Real time data feeds don't appear to trigger worksheet change event.

Does anyone have any idea how I can trigger my macro when values fed in
to cells through DDE or RTD reach a threshold?

Thanks in advance
 
C

Chip Pearson

You can use OnData to specify a macro to run when the workbook is
updated via DDE.


Application.OnData = "MyMacro"



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
J

John.Greenan

What about cheating by creating a function in another cell -
=mynewfunction(rtd cell reference, threshold)

and then write a custom function where the function has a line

if rtd cell reference.value > threshold then
'do stuff here
else
'do nothing
end if

That will do the job...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top