Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default A problem with the function "NOW"

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


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default A problem with the function "NOW"

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-:


"Matthias Dhondt" wrote:

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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default A problem with the function "NOW"

If you want to put current time into a cell, use Control Shift Colon.
--
David Biddulph

"Matthias Dhondt" wrote in message
...
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




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default A problem with the function "NOW"

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

On Thu, 13 Sep 2007 12:48:21 +0200, "Matthias Dhondt"
wrote:

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


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
Text "comparison" operator for "contains" used in an "IF" Function Pawaso Excel Worksheet Functions 4 April 4th 23 11:35 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
problem with Linking workbooks via "copy" and "paste link" Arkitek Excel Discussion (Misc queries) 0 December 19th 06 10:03 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM


All times are GMT +1. The time now is 04:34 PM.

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"