Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All
As the subject suggests, more importantly, is it possible. I use the following as a Time Stamp. Sub TimeStamp() ActiveCell.NumberFormat = "hh:mm" ActiveCell.Value = Now() End Sub I need assistance for the correct Syntax Structure to incorporate the MINUTE() Formula to work inside the above routine so that when the user hits the time stamp it stamps the time to the closest 5 minutes. eg If it is 15:41, it would stamp 15:40, conversely, 16:44 = 16:45.. Appreciate your help TIA Mick. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Mick,
Am Tue, 21 Jun 2011 20:59:05 +1000 schrieb Vacuum Sealed: I need assistance for the correct Syntax Structure to incorporate the MINUTE() Formula to work inside the above routine so that when the user hits the time stamp it stamps the time to the closest 5 minutes. try this: ActiveCell = Round(Time * 288, 0) / 288 Regards Claus Busch -- Win XP PRof SP2 / Vista Ultimate SP2 Office 2003 SP2 /2007 Ultimate SP2 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
So Cool
Thank you so much Claus. Mick. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Rounding Time. | Excel Worksheet Functions | |||
rounding time | Excel Worksheet Functions | |||
Time rounding help | Excel Discussion (Misc queries) | |||
Rounding Time | Excel Programming | |||
Rounding time | Excel Programming |