i have a problem when i start run for this code : msg box not returns a value
msgbox(DataTable("Customer_Type", DataTable("Onglet", dtLocalSheet)))
BUT when them from a step msg box return a value.
i have modified run mode (1 s between each step) but the proble it's always same.
Re: return value
Try to read help about DataTable and how to retrieve the value from specified sheet.
Use the following code:
sheetName = "..."