you should be able to subtract the login time from the current date/time (now())
and format it as hh:nn:ss using:

ThisWorkbook.Sheets(2).Range("k20").Value = Format(Now() - 
Sheets(2).Range("i9").Value, "hh:nn:ss")
 
Paul
-----------------------------------------
“Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can.” - John Wesley
-----------------------------------------




________________________________
From: Indrajit $nai <talk2indra...@gmail.com>
To: excel-macros@googlegroups.com
Sent: Tue, February 19, 2013 3:13:23 PM
Subject: $$Excel-Macros$$ Re: Login and Logout time tracker...need help....


Sorry attached wrong file, in my previous mail.......



On Tue, Feb 19, 2013 at 8:09 PM, Indrajit $nai <talk2indra...@gmail.com> wrote:

Hi Experts, 
>
>
>Need a small help from your end. I've created a login and logout time tracker, 
>which is working perfectly, but I want to show running login hrs in this file, 
>as of now it's showing running current time, as per system clock, which is ok, 
>but I wanna show running login hrs instate of running current time. If it's 
>possible then please provide me the VBA code.
>
>
>PFA for your reference. 
>
>
>Thanks in advance.
>
>-- 
>Indrajit 
>
>Disclaimer:
>This electronic message and any files transmitted with it are confidential and 
>intended solely for the use of the individual or entity to whom they are 
>addressed. If you are not the intended recipient you are hereby notified that 
>any disclosure, copying, distribution or taking any action in reliance on the 
>contents of this information is strictly prohibited and may be unlawful. 
>


-- 
Indrajit Snai
+91 9051755745
talk2indra...@gmail.com 

Disclaimer:
This electronic message and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they are 
addressed. If you are not the intended recipient you are hereby notified that 
any disclosure, copying, distribution or taking any action in reliance on the 
contents of this information is strictly prohibited and may be unlawful. -- 

Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel
 
FORUM RULES
 
1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.
 
NOTE : Don't ever post confidential data in a workbook. Forum owners and 
members 
are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to