I am a newby to VB in Excel. The only thing I cannot make work is to display string data in a textbox on a userform. I have the following code which appears to work up until the data move from item to the textbox name on the DDERequest line. It generates a type mismatch.
ChannelNumber = Application.DDEInitiate( _
app:="RSLinx", _
topic:="Topic_Test")
CLX_Tag = "Order_No[0]"
TextBox1 = Application.DDERequest(ChannelNumber, CLX_Tag)
Application.DDETerminate ChannelNumber
My goal is to simply create a userform with textboxes in Excel to display string values from a ControlLogix. It seems simple to me, but is it even possible? As I mentioned, I am a bit new to VBA with only some experience programming forms in MS Access.
Any assistance would be greatly appreciated. I've been banging my head on the wall with this for a couple of days now.
Thanks in advance.
Don N.
ChannelNumber = Application.DDEInitiate( _
app:="RSLinx", _
topic:="Topic_Test")
CLX_Tag = "Order_No[0]"
TextBox1 = Application.DDERequest(ChannelNumber, CLX_Tag)
Application.DDETerminate ChannelNumber
My goal is to simply create a userform with textboxes in Excel to display string values from a ControlLogix. It seems simple to me, but is it even possible? As I mentioned, I am a bit new to VBA with only some experience programming forms in MS Access.
Any assistance would be greatly appreciated. I've been banging my head on the wall with this for a couple of days now.
Thanks in advance.
Don N.