The two function above will work.Tried these two in Excel and they workOption ExplicitFunction ConvertToMinutes(ByVal ParamHour As Currency) As Integer On Error Resume Next ConvertToMinutes = 60 * Int(ParamHour) + 100 * (ParamHour - Int(ParamHour))End FunctionFunction ConvertToHours(ByVal ParamMinutes As Integer) As Currency On Error Resume Next ConvertToHours = Int(ParamMinutes / 60) + (ParamMinutes Mod 60) / 100End Function
Rewrite asPublic Function ConvertToMinutes(ByVal ParamHour As Decimal) As Integer On Error Resume Next Return 60 * Int(ParamHour) + 100 * (ParamHour - Int(ParamHour))End FunctionPublic Function ConvertToHours(ByVal ParamMinutes As Integer) As Decimal On Error Resume Next Return Int(ParamMinutes / 60) + (ParamMinutes Mod 60) / 100End Function
E 12°55'05.63"N 56°04'39.26"