I'm not an expert in this so take this for what it's worth.
I'm trying to do the same thing, without much success. However, from what I have found you need to put something like this into your VBA script:
Value = DDEInitiate("RSLinx", "Target_Topic")
DDEPoke Value, "N7:10", 100
DDETerminate Value
DDEInitiate opens communication to a DDE server and defines an indentifier (in this case Value) that other DDE instructions will use to reference the server. In this example Target_Topic is an already defined topic in RSLinx.
DDEPoke is the instruction that sends a value from Excel to the DDE server identified by Value. The format is:
DDE identifier, target address, data value
DDETerminate closes the DDE link identified by Value.
As I said I'm a bit stuck myself as I'm only getting a zero return from DDEInitiate. So I have something wrong. But with any luck this will give you a start.
Keith