Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default (Today) function can you make it stick

Is there a way to use the (TODAY) function so that is saves in a saved as
worksheet as text.

Here's what I'm after. I have a protected sheet that I do deal calculations
on, that I save as "the deal" once I reach an agreement with my customer.

Is there a way for the date to save on the "saved as" file as text so that
the date doesn't change from that point forward?

In other, After I save the file as the customers final deal. How do I make
the date remain the same hence forward automatically?

Thanks to anyone that can help.

Brian


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default (Today) function can you make it stick

Brian,

You can manually convert the formula to a fixed date entry by pressing F2
then F9 then Enter.

The VBA equivalent is

Range("A1").Value = Range("A1").Text

You could set up a macro to do the SaveAs after it has fixed the date.
--
John Green
Sydney
Australia


"B. E. Smith" wrote in message
...
Is there a way to use the (TODAY) function so that is saves in a saved as
worksheet as text.

Here's what I'm after. I have a protected sheet that I do deal

calculations
on, that I save as "the deal" once I reach an agreement with my customer.

Is there a way for the date to save on the "saved as" file as text so

that
the date doesn't change from that point forward?

In other, After I save the file as the customers final deal. How do I make
the date remain the same hence forward automatically?

Thanks to anyone that can help.

Brian




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default (Today) function can you make it stick

Brian,

If your not using VBA just copy and paste special (Values)

Using VBA here are some options.

If you already have some code runining insert this where appropriate.

Range("A3") = Format(Now(), "mm/dd/yyyy")


Another option would be to simply copy and then paste as a value after you
save.
code would look something like this.

Sub Macro1()
With Range("A3")
.Copy
.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
End With
End Sub


A little better solution would be to make it reusable on any active cell and
tie this to a key function.

Drop the following code into a VBA code module.

Sub SaveDateAsText()
With ActiveCell
.Copy
.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
End With
End Sub


Then go to tools/Macro/macros,,,
click the macro SaveDateAsText
click options
enter a Key to asign macro to.

Click OK and lose the macro Dialog.


Now you can click in any cell and press ctr-(key) combination to run your
macro.

Hope this helps
gary M.


"B. E. Smith" wrote in message
...
Is there a way to use the (TODAY) function so that is saves in a saved as
worksheet as text.

Here's what I'm after. I have a protected sheet that I do deal
calculations on, that I save as "the deal" once I reach an agreement with
my customer.

Is there a way for the date to save on the "saved as" file as text so
that the date doesn't change from that point forward?

In other, After I save the file as the customers final deal. How do I make
the date remain the same hence forward automatically?

Thanks to anyone that can help.

Brian



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 195
Default (Today) function can you make it stick

John Green wrote

You can manually convert the formula to a fixed date entry by pressing F2
then F9 then Enter.


Cool. I can use that.

Always learning,
David
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
How can i make excel to highlight today using conditional formating Kinghart Excel Worksheet Functions 4 November 17th 08 04:58 PM
Make pivotchart formatting stick after pivottable refresh. larry garka Charts and Charting in Excel 3 June 5th 08 03:12 PM
How to make the Result of a TODAY Function static? kscramm Excel Worksheet Functions 11 March 23rd 06 08:17 AM
How to make the Today() function static JC Home Excel Programming 3 July 26th 03 03:57 PM


All times are GMT +1. The time now is 11:41 PM.

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

About Us

"It's about Microsoft Excel"