greenbambootea
IS-IT--Management
What I am dealing with now is to read data from another program in Excel by using DDE. the VBA code is something like following:
channel = Application.DDEInitiate("cqgpc", "CLESK07") data_sheet.Cells(99 + row, 15) = Application.DDERequest(channel, "Y_Settlement")
temp(row, 3) = data_feed_justify(99 + row,15)
Application.DDETerminate (channel)
data_feed_justify is just a function to figure out the value which should be get for temp. Basically, the returns from DDErequest could be an empty string, a string with 8 blanks, #value!, or an integer. In this case, can somebody suggest a faster way to get the value instead of using a cell as a "bridge". Cint()does not work.
channel = Application.DDEInitiate("cqgpc", "CLESK07") data_sheet.Cells(99 + row, 15) = Application.DDERequest(channel, "Y_Settlement")
temp(row, 3) = data_feed_justify(99 + row,15)
Application.DDETerminate (channel)
data_feed_justify is just a function to figure out the value which should be get for temp. Basically, the returns from DDErequest could be an empty string, a string with 8 blanks, #value!, or an integer. In this case, can somebody suggest a faster way to get the value instead of using a cell as a "bridge". Cint()does not work.