Skip to content

Commit

Permalink
#5 Fix Separate Values button fails on column with all zero strings i…
Browse files Browse the repository at this point in the history
…n C# version
  • Loading branch information
tduguid authored and tduguid committed Jan 19, 2018
1 parent 829e3cf commit c53c594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CS/Scripts/Ribbon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c53c594

Please sign in to comment.