For Listbox1, I have the following, below.
After validation, how can I make the cell have focus and editable?
Thanks!
Sub CellAction(row As Integer, column As Integer) Handles CellAction
' Validate Time
If column = 1 OR column = 2 Then
Dim sTime as String = ValidateTime(me.Cell(row,column)) 'Returns either "##:##:##" or "ERR"
If sTime = "ERR" Then
MsgBox "Time must be formatted as HH:MM:SS"
//
// How can I re-select this cell, so the user can re-edit it and put in a valid time?
// Me.EditCell(row, column)
// doesn't work.
Else
me.Cell(row,column) = sTime
End If
End If
End Sub