Please see below image.

How do I insert a variable in the following highlighted area —>
ExcelDataTable.Select(“Programme = ‘Non Operations’”)
Please see below image.

How do I insert a variable in the following highlighted area —>
ExcelDataTable.Select(“Programme = ‘Non Operations’”)
Hi @shikharno.7
Try this way:
programName = "Non Operations"
ExcelDataTable.Select("Programme = '" + programName + "'")
Regards
one of many options:
ExcelDataTable.Select(String.Format("Programme = '{0}'", YourStringVar))
Hi,
Can you try String.Format merhod in Select?
ExcelDataTable.Select(String.Format(“Programme = ‘{0}’”, yourVariable))
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.