Time conversion

G

Guest

-----Original Message-----
Hi,
How would I convert a number (100) into hours and minutes?

Thanks
.
I had several people working on this and it was only
possible to do this by creating a prog. in VB and setting
it up as a Macro in Excel.....

This is what they came up with:

Sub Macro3()
'
' Macro3 Macro
' Macro recorded 2/7/2002 by PCModem
Dim saversec
Dim getit As Integer
Dim savermin As Integer


getit = ActiveCell
saversec = (getit Mod 60)
savermin = (getit / 60)

'""HH:mm"")"
ActiveCell = savermin & ":" & saversec



End Sub
 
G

Guest

Thanks very much - that works a treat!
-----Original Message-----

possible to do this by creating a prog. in VB and setting
it up as a Macro in Excel.....

This is what they came up with:

Sub Macro3()
'
' Macro3 Macro
' Macro recorded 2/7/2002 by PCModem
Dim saversec
Dim getit As Integer
Dim savermin As Integer


getit = ActiveCell
saversec = (getit Mod 60)
savermin = (getit / 60)

'""HH:mm"")"
ActiveCell = savermin & ":" & saversec



End Sub
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top