diff --git a/CS/Scripts/Ribbon.cs b/CS/Scripts/Ribbon.cs index ad54467..7525700 100644 --- a/CS/Scripts/Ribbon.cs +++ b/CS/Scripts/Ribbon.cs @@ -923,9 +923,9 @@ public void SeparateValues() for (int i = 1; i <= m + 1; i++) // by row { - string cellValue = tbl.Range.Cells[i, columnIndex].Value2.ToString(); - if (string.IsNullOrEmpty(cellValue) == false) + if (tbl.Range.Cells[i, columnIndex].Value2 != null) { + string cellValue = tbl.Range.Cells[i, columnIndex].Value2.ToString(); string[] metadata = cellValue.Split(Properties.Settings.Default.Table_ColumnSeparateValuesDelimiter); int countValues = metadata.Length - 1; if (countValues > 0)