LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Can an Excel macro be automatically run based upon data in a cell?

I believe that if you provide a macro name to the OnData property
of the Application object, that macro will run when a DDE update
is made. E.g.,

Sub AAA()
Application.OnData "DoDDE"
End Sub

Sub DoDDE()
' do something
End Sub


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


"chasedan" wrote in message
...
I'm trying to poke a DDE message to RSLINX from Excel based
upon whether a
cell in Excel contains the value 1 or 0. The value in the cell
changes based
upon a DDE link to a timer running on an Allen Bradley PLC
(Micrologix 1100).
I have a macro that can deliver the message but it must be
initiated
manually. Is there a way to launch the macro automatically?



 
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 do I automatically fill a cell based on another cell in Excel SouthCarolina Excel Discussion (Misc queries) 3 January 13th 06 12:52 AM
Can Excel hide a row automatically based on value in a cell? RJQMAN[_3_] Excel Programming 2 July 7th 05 08:56 AM
automatically send email in excel based on value/macro guru stuff Michael A Excel Programming 2 June 14th 05 09:08 PM
Can an excel cell automatically change fill colors based on values John Clark Excel Discussion (Misc queries) 1 February 5th 05 05:21 PM
enter data in cell then run macro automatically R D S Excel Discussion (Misc queries) 2 January 25th 05 10:19 PM


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