Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default enter todays date

i need a macro that enters todays date into whatever cell is selected.
i tried a formula but it updates everyday. so i need it to stay on the date
entered

thank you
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 135
Default enter todays date

choice, here is on way

Sub todays_date()
ActiveCell = Date
End Sub

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2000 & 2003
** remove news from my email address to reply by email **
"choice" wrote in message
...
i need a macro that enters todays date into whatever cell is selected.
i tried a formula but it updates everyday. so i need it to stay on the

date
entered

thank you



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default enter todays date

choice

Are you sure you want a date entered into "whatever cell is selected"? This
could lead to a lotta cells with a date entered.

This would require Event code and may not be what you desire.

To enter a static date into a cell you can use CRTL + ;(semi-colon)

Macro to enter a date in a cell when you run the macro via button or shortcut
key combo.

Sub NOWDATE()
ActiveCell.Value = Format(Date, "dd-mmm-yy")
End Sub


Gord Dibben Excel MVP

On Sat, 21 Aug 2004 10:13:01 -0700, choice
wrote:

i need a macro that enters todays date into whatever cell is selected.
i tried a formula but it updates everyday. so i need it to stay on the date
entered

thank you


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
is there a formula that will subtract todays date from a hire date Heather Excel Worksheet Functions 5 April 25th 23 07:44 PM
Can I automatically have a cell enter todays date + 45 dyas theflyingtaz Excel Discussion (Misc queries) 5 June 3rd 08 05:57 PM
Exel increment date problem wrt todays date. [email protected] Excel Worksheet Functions 1 November 11th 07 06:58 PM
Create a button that will date stamp todays date in a cell Tom Meacham Excel Discussion (Misc queries) 3 January 11th 06 01:08 AM
When I open my past invoice it keeps changing date to todays date Stop date changing to todays in Excel Excel Worksheet Functions 2 October 7th 05 04:54 PM


All times are GMT +1. The time now is 07:54 AM.

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"