I have looked and found many ways to do this but none are working within what code i do have
I need to convert a general number into hours:minutes within VBA code
Source info is in minutes. I have previously used TimeValue and Format to make it work but for some reason this time i cannot get it to give me anything other than 1900/1/1 12:00 AM or just 0
ATime is the time in minutes
The relevant code is
Dim ATime As String
Dim AName As String
Dim i As Integer
i=2
ATime = Sheet2.Cells(i, 14)
While AName <> ""
Sheet4.Cells(i, 3).Value = ATime / 60 ----here is where i need it to convert
i = i + 1
ATime = Sheet2.Cells(i, 14)
Wend
Any help would be greatly appreciated
I need to convert a general number into hours:minutes within VBA code
Source info is in minutes. I have previously used TimeValue and Format to make it work but for some reason this time i cannot get it to give me anything other than 1900/1/1 12:00 AM or just 0
ATime is the time in minutes
The relevant code is
Dim ATime As String
Dim AName As String
Dim i As Integer
i=2
ATime = Sheet2.Cells(i, 14)
While AName <> ""
Sheet4.Cells(i, 3).Value = ATime / 60 ----here is where i need it to convert
i = i + 1
ATime = Sheet2.Cells(i, 14)
Wend
Any help would be greatly appreciated