×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Excell, How do I put current time in a cell without updating others?

Excell, How do I put current time in a cell without updating others?

Excell, How do I put current time in a cell without updating others?

(OP)
I'm trying to create a data logg function.
A macro will insert a new row and time in the cell besides it. I am using the function hour (now()) and second(now())

When I insert the function =second (now()) It aslo updates all the other cell that have this function. (Not good)

Each event must keep the time of the event. How do I do this?

RE: Excell, How do I put current time in a cell without updating others?

You could brute force it and insert the function outputs into cells and then copy/paste special values into the final output cells.

TTFN

RE: Excell, How do I put current time in a cell without updating others?

The worksheet function Now() is evaluated each time the worksheet is recalculated. Therefore, you need something like this in your VB macro:

    a = Now
    [a1].Value = Hour(a)
    [b1].Value = Minute(a)
    [c1].Value = Second(a)

Cheers,
Joerd

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.

RE: Excell, How do I put current time in a cell without updating others?

(OP)
Thank you for your assistance !

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close