Skip to content

Commit c53c594

Browse files
tduguidtduguid
tduguid
authored and
tduguid
committed
#5 Fix Separate Values button fails on column with all zero strings in C# version
1 parent 829e3cf commit c53c594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CS/Scripts/Ribbon.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ public void SeparateValues()
934934
for (int j = 1; j <= countValues; j++) // by value
935935
{
936936
tbl.ListRows.Add(i);
937-
tbl.Range.Rows[i + 1].Value = tbl.Range.Rows[i].Value;
937+
tbl.Range.Rows[i + 1].Value = tbl.Range.Rows[i].Value.Trim();
938938
tbl.Range.Cells[i + 1, columnIndex].Value2 = metadata[j - 1].Trim(); // get the next value in the string
939939
}
940940
tbl.Range.Cells[i, columnIndex].Value2 = metadata[countValues].Trim(); // reset the first row value

0 commit comments

Comments
 (0)