Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2006

Tip: Looking for answers? Try searching our database.

Format to display hh:mm:ss

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
FotoArt - 03 Mar 2006 17:44 GMT
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
Jezebel - 04 Mar 2006 00:00 GMT
Dim pMinutes        as long

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

> hello everyone
>
[quoted text clipped - 12 lines]
> thanx
> ahmed
FotoArt - 04 Mar 2006 08:23 GMT
thanx Jez
I had to change 1440 to 8600 to make my calculation work.

its working great

ahmed

> Dim pMinutes        as long
>
[quoted text clipped - 17 lines]
> > thanx
> > ahmed
Jezebel - 04 Mar 2006 08:43 GMT
There are 1440 minutes in 24 hours. What time scale are you working to?

> thanx Jez
> I had to change 1440 to 8600 to make my calculation work.
[quoted text clipped - 24 lines]
>> > thanx
>> > ahmed
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.