#1   Report Post  
Kenny
 
Posts: n/a
Default macro with F9

I want to a macro to insert the formula =TODAY() and then recalc it to make
it a static result that represents the date as of the time the macro is run,
not a dynamic formula that would change with each new day. I have recorded a
macro to do this. If I run the macro & today is Aug 3, the correct result
would be 08/03/2005, not the formula =TODAY(). However, if I run my macro
tomorrow, Aug 4, the macro returns a result of 08/03/2005, because the code
that resulted from my macro-record has a line in it, such as Select Active
Cell. Active Cell = "08/03/2005." I would like the macro to execute the
recalc function, not return a value that was the result when the macro was
first recorded. Would appreciate any help. Thanks.

  #2   Report Post  
FSt1
 
Posts: n/a
Default

hi,
add this your your macro

Activecell.Value = Date

regards
FSt1

"Kenny" wrote:

I want to a macro to insert the formula =TODAY() and then recalc it to make
it a static result that represents the date as of the time the macro is run,
not a dynamic formula that would change with each new day. I have recorded a
macro to do this. If I run the macro & today is Aug 3, the correct result
would be 08/03/2005, not the formula =TODAY(). However, if I run my macro
tomorrow, Aug 4, the macro returns a result of 08/03/2005, because the code
that resulted from my macro-record has a line in it, such as Select Active
Cell. Active Cell = "08/03/2005." I would like the macro to execute the
recalc function, not return a value that was the result when the macro was
first recorded. Would appreciate any help. Thanks.

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
Make Alignment options under format cells available as shortcut dforrest Excel Discussion (Misc queries) 1 July 14th 05 10:58 PM
Help with macro looping and color query function kevinm Excel Discussion (Misc queries) 10 May 26th 05 01:25 AM
Playing a macro from another workbook Jim Excel Discussion (Misc queries) 1 February 23rd 05 10:12 PM
Date macro Hiking Excel Discussion (Misc queries) 9 February 3rd 05 12:40 AM
Macro and If Statement SATB Excel Discussion (Misc queries) 2 December 3rd 04 04:46 PM


All times are GMT +1. The time now is 11:27 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"