I am trying to append character to a cell value for example c3 using following vb code.
For Each target As String In targetList
If target.Length > 1 AndAlso Char.IsLetter(target(0)) AndAlso Char.IsDigit(target(1)) Then
Dim columnIndex As Integer = Asc(target(0)) - Asc(“A”)
Dim rowIndex As Integer = Integer.Parse(target.Substring(1)) - 1
If rowIndex = row.Table.Rows.IndexOf(row) AndAlso columnIndex >= 0 AndAlso columnIndex < dt.Columns.Count Then
newRow(columnIndex) = characterToAdd & newRow(columnIndex).ToString()
End If
End If
The issue is instead of appending the character on c3 cell it is appending on c4.can someone help what i am missing