Hello to all,
I would like to implement an 'interface' between FactoryTalk ME application and Excel.
The sequence will be the following:
The user will scan a bar code in FactoryTalk and this bar code will be transferred in an Excel database. The Excel sheet will contain thousands of different bar codes.
With a Visual Basic macro which uses the StrComp function the Barcode from FactoryTalk will be compared with the macros which already exist in Excel. If the result of StrComp is somewhere equal with 0 the Excel sheet will return a specified value to the FactoryTalk.
Until now I am able to transfer the barcode to the Excel sheet through RsLinx Single Node and my macro which compares the bar codes works fine when I trigger it. But I would like execute this macro automatically when the imported bar code from FactoryTalk changes value.
I try the Worksheet_Change sub but it seems to not work because in reality I don't change the value of the cell as the Tag from RsLinx is always the same.
If someone knows another way of executing automatically macros in Excel will be appreciated
Thanks in advance
I would like to implement an 'interface' between FactoryTalk ME application and Excel.
The sequence will be the following:
The user will scan a bar code in FactoryTalk and this bar code will be transferred in an Excel database. The Excel sheet will contain thousands of different bar codes.
With a Visual Basic macro which uses the StrComp function the Barcode from FactoryTalk will be compared with the macros which already exist in Excel. If the result of StrComp is somewhere equal with 0 the Excel sheet will return a specified value to the FactoryTalk.
Until now I am able to transfer the barcode to the Excel sheet through RsLinx Single Node and my macro which compares the bar codes works fine when I trigger it. But I would like execute this macro automatically when the imported bar code from FactoryTalk changes value.
I try the Worksheet_Change sub but it seems to not work because in reality I don't change the value of the cell as the Tag from RsLinx is always the same.
If someone knows another way of executing automatically macros in Excel will be appreciated
Thanks in advance