Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
NOW Function For Time Changes With Each New Macro
I need help. I have created a telephone log and need to log the time that
each of these calls takes. I want to insert a NOW Function in the first two cells of each telephone call, but when the macro is run for each cell, it changes them both to the current time. It will continue to change them for each telephone call to all the same time. How do I get the function NOW to put in just the time the macro is run, and not every time. I hope this makes sense! |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
NOW Function For Time Changes With Each New Macro
Sub time1()
Set r = Range("A1") r.Formula = "=NOW()" End Sub Sub time2() Set r = Range("A1") r.Value = Now() End Sub The first method deposits a formula that updates as give goes on. The second method deposits a value that is static. -- Gary's Student "HLD920" wrote: I need help. I have created a telephone log and need to log the time that each of these calls takes. I want to insert a NOW Function in the first two cells of each telephone call, but when the macro is run for each cell, it changes them both to the current time. It will continue to change them for each telephone call to all the same time. How do I get the function NOW to put in just the time the macro is run, and not every time. I hope this makes sense! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Can I write a Macro into an IF Function? | Excel Discussion (Misc queries) | |||
HELP NEEDED FOR IF Function Inside a Macro | Excel Worksheet Functions | |||
Adding a Function to a cell when inserting a row from a macro | Excel Worksheet Functions | |||
Excel option to store trendline's coefficients in cells for use | Charts and Charting in Excel | |||
Function Macro for Nested IF | Excel Worksheet Functions |