View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Muhammed Rafeek M Muhammed Rafeek M is offline
external usenet poster
 
Posts: 179
Default Simple String Question

pls modify ur code:

Import = DDEInitiate("RSLinx", DDETopic)


"pete3589" wrote:


I have a VBA application that needs to look at a certain cell in order
to identify the topic for DDE communications. I think I am somehow not
declaring my string properly.

Dim Array1 As Integer
Dim Row As Integer
Dim AnInput As Integer
Dim DDETopic As String


DDETopic = Worksheets("Set Points").Range("L4").Value

Import = DDEInitiate("RSLinx", "DDETopic")

Where DDE Topic is the value in cell L4 of sheet "Set Points". When I
run the macro it gives me an error that says RSLinx isnt running.
However, if i just put the correct topic name in place of DDETopic
everything works fine. Am I declaring the string DDETopic correctly?


--
pete3589
------------------------------------------------------------------------
pete3589's Profile: http://www.excelforum.com/member.php...o&userid=28402
View this thread: http://www.excelforum.com/showthread...hreadid=574163