A problem with the function "NOW"

M

Matthias Dhondt

Hi all,

We made a macro, to show the current time in the cell "A1", we used the
function Now()-Today()

When you adapt something in Excel, the time in cell "A1" will automatically
be changed in the current time.

What do we have to change in the macro, that the time don't adapt anymore?

greeting Matthias
 
D

Duke Carey

The easiest way to put the current time into a cell so that it doesn't update
is to select the cell and press Ctrl-Shift-:
 
G

Gord Dibben

Post the macro you use to enter the time.

ActiveCell.Value = Format(Now(), "h:mm:ss AM/PM") will enter a static time.

Perhaps your macro employs event code which updates the time when something
changes.


Gord Dibben MS Excel MVP
 
Top