From c53c59404e4d4eff5bec82c7efca9ff6b28164a2 Mon Sep 17 00:00:00 2001 From: tduguid Date: Fri, 19 Jan 2018 12:42:20 +1100 Subject: [PATCH] #5 Fix Separate Values button fails on column with all zero strings in C# version --- CS/Scripts/Ribbon.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CS/Scripts/Ribbon.cs b/CS/Scripts/Ribbon.cs index 7525700..e6ed110 100644 --- a/CS/Scripts/Ribbon.cs +++ b/CS/Scripts/Ribbon.cs @@ -934,7 +934,7 @@ public void SeparateValues() for (int j = 1; j <= countValues; j++) // by value { tbl.ListRows.Add(i); - tbl.Range.Rows[i + 1].Value = tbl.Range.Rows[i].Value; + tbl.Range.Rows[i + 1].Value = tbl.Range.Rows[i].Value.Trim(); tbl.Range.Cells[i + 1, columnIndex].Value2 = metadata[j - 1].Trim(); // get the next value in the string } tbl.Range.Cells[i, columnIndex].Value2 = metadata[countValues].Trim(); // reset the first row value