Reading and writing to and from Excel
Posted: Wed 29. Mar 2017, 08:49
Hello,
i am new to PCAN Explorer and wanted a help regarding reading and writing function of VBScript Macros.
a signal is assigned to a vertical slider and i want to read value from a excel file (*.xlsx) and provide that value to that signal.
i got to know from help that it is possible to read and write Values using an .txt file. But i want to open an excel file (*.xlsx) using a macro and read a range of Values from a specific sheet (from a set of 8 sheets workbook), from a specific cell range (e.g. "A15 to A20"), and assign it to my signals one by one.
Similarly write a value obtained from another Signal to the same sheet but at different cell name (e.g. "E21").
is it possible to do so?
P.S. i am using a Button as a trigger to execute the Macro command
Thank you in advance.
i am new to PCAN Explorer and wanted a help regarding reading and writing function of VBScript Macros.
a signal is assigned to a vertical slider and i want to read value from a excel file (*.xlsx) and provide that value to that signal.
i got to know from help that it is possible to read and write Values using an .txt file. But i want to open an excel file (*.xlsx) using a macro and read a range of Values from a specific sheet (from a set of 8 sheets workbook), from a specific cell range (e.g. "A15 to A20"), and assign it to my signals one by one.
Similarly write a value obtained from another Signal to the same sheet but at different cell name (e.g. "E21").
is it possible to do so?
P.S. i am using a Button as a trigger to execute the Macro command
Thank you in advance.