So a beginner could use a useless loop with Split VBA text functionIf really a code is needed, use Split and apply same logic !
Sub DoSomeExtraWork()
On Error Resume Next
Dim Rng As Range
Set WorkRng = Application.Selection
If WorkRng.Columns.Count > 1 Then
MsgBox "Only ONE Column!"
Exit Sub
End If
For Each Rng In WorkRng.Rows
Err.Clear
chk_a = Rng.Value
x = WorksheetFunction.Find(":", chk_a, 1)
If Err.Number = 0 Then Rng.Value = Val(Left(chk_a, x - 1)) + Val(Mid(chk_a, x + 1, 999)) / 60
Next Rng
End Sub
Sub DemoBeginner()
Dim Rg As Range, V
For Each Rg In Range("A2", Cells(1).End(xlDown))
V = Split(Rg.Value, ":")
If UBound(V) > 0 Then Rg.Value = V(0) + V(1) / 60
Next
End Sub
who are you are you dog ???@SirJB7!
Time passes, some old dogs don't learn new tricks... and not even remember old ones.
Regards!