Format to display hh:mm:ss

F

FotoArt

hello everyone

I have the following line of code

..Caption = Format((lngWords \ 90), "##,##0") & " minutes of Text - Microsoft
Word"

I want to convert the lngWords to hh:mm:ss
my formula would be
(((lngWords / 1.5) / 60) / 60) / 24

Any kind of help would be appreciated

thanx
ahmed
 
J

Jezebel

Dim pMinutes as long

pMinutes = lngWords / 1.5
..Caption = format$(pMinutes/1440, "hh:mm:ss")
 
F

FotoArt

thanx Jez
I had to change 1440 to 8600 to make my calculation work.

its working great

ahmed
 

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