Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
HLD920
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student
 
Posts: n/a
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I write a Macro into an IF Function? FX42N Excel Discussion (Misc queries) 1 June 5th 06 06:06 AM
HELP NEEDED FOR IF Function Inside a Macro Sandi Excel Worksheet Functions 1 June 2nd 06 04:14 AM
Adding a Function to a cell when inserting a row from a macro Mbarnes Excel Worksheet Functions 0 May 31st 06 04:38 PM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
Function Macro for Nested IF Qaspec Excel Worksheet Functions 5 March 10th 05 07:25 PM


All times are GMT +1. The time now is 04:35 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"