Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
hi,
I want to record current time into cell(A2) when cell (A1) does contain value with macro. I want to record it automaticaly without using any shortkey or tab, Please help. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
If Range("A1")< val Then Range("A2")=Time
-- Regards Dave Hawley www.ozgrid.com "karim" wrote in message ... hi, I want to record current time into cell(A2) when cell (A1) does contain value with macro. I want to record it automaticaly without using any shortkey or tab, Please help. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
On Error GoTo enditall Application.EnableEvents = False If Me.Range("A1").Value < "" Then Me.Range("A2").Value = Format(Now, "hh:mm:ss") End If enditall: Application.EnableEvents = True End Sub Placed in the worksheet module. Gord Dibben MS Excel MVP On Fri, 30 Apr 2010 20:25:01 -0700, karim wrote: hi, I want to record current time into cell(A2) when cell (A1) does contain value with macro. I want to record it automaticaly without using any shortkey or tab, Please help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
First Time Macro User--Stop Recording Toolbar | Excel Discussion (Misc queries) | |||
My excel macro recorder no longer shows up when recording macro | Excel Discussion (Misc queries) | |||
My excel macro recorder no longer shows up when recording macro | Excel Discussion (Misc queries) | |||
recording negative time | Excel Discussion (Misc queries) | |||
Recording time in Excel | Excel Discussion (Misc queries) |