参考代码
Dim str As String = "16:30-18:00"Dim ary() As String = str.Split("-")Dim sp As TimeSpan = cdate("2000-1-1 " & ary(1)) - cdate("2000-1-1 " & ary(0))msgbox(sp.TotalMinutes)