#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 203
Default auto date

I would like to set up an autodate in an excel spreadsheet. I want the date
to fill when I enter data into the previous cell, but I do not want the date
to change when the report is updated or saved. Is this possible in excel. I
do not want to take the form to access because of user issues.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default auto date

Albert,

Try this code in the Worksheet Selection_Change event:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'Enter the address you want to use here
If Target.Address = "$B$1" Then
If Target.Value = "" And Target.Offset(0, -1).Value < "" Then
Target.Value = Now()
End If
End If
End Sub

HTH

Troy

"albert" wrote in message
...
I would like to set up an autodate in an excel spreadsheet. I want the
date
to fill when I enter data into the previous cell, but I do not want the
date
to change when the report is updated or saved. Is this possible in excel.
I
do not want to take the form to access because of user issues.



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
auto date Andy JL New Users to Excel 5 September 15th 08 11:59 PM
Auto calculate for date + days forward to yield new date John Sullivan Excel Worksheet Functions 1 April 22nd 06 05:18 PM
Auto Protecting cells & auto filling date ccarmock Excel Discussion (Misc queries) 7 September 30th 05 09:21 PM
assign auto number and auto date Krit Kasem Excel Discussion (Misc queries) 2 January 14th 05 02:55 AM
auto date Rik13 Excel Programming 4 December 1st 03 08:16 PM


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