Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Inserting a date when cell is changed


Hi.

I need Excel to insert a date in a certain cell (F26) when another cell
is altered (C7). The trouble is that the date entered in F26 mustn't
change, it must always read as the date when C7 was altered.


I can't seem to make it work without the date constantly changing to
the new day's date.

Gavin


--
Gavin Ling
------------------------------------------------------------------------
Gavin Ling's Profile: http://www.excelforum.com/member.php...o&userid=30110
View this thread: http://www.excelforum.com/showthread...hreadid=512015

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default Inserting a date when cell is changed

Here is some code for you to try. It only works if C7 is a constant and not a
formula. Right click the sheet tab and select view code and then paste this...

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$C$7" Then Range("F26").Value = Date
End Sub
--
HTH...

Jim Thomlinson


"Gavin Ling" wrote:


Hi.

I need Excel to insert a date in a certain cell (F26) when another cell
is altered (C7). The trouble is that the date entered in F26 mustn't
change, it must always read as the date when C7 was altered.


I can't seem to make it work without the date constantly changing to
the new day's date.

Gavin


--
Gavin Ling
------------------------------------------------------------------------
Gavin Ling's Profile: http://www.excelforum.com/member.php...o&userid=30110
View this thread: http://www.excelforum.com/showthread...hreadid=512015


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
Can a cell be changed on a certain date Lou825 Excel Discussion (Misc queries) 2 January 31st 09 11:46 AM
STORE THE DATE & TIME THE VALUE HAS CHANGED IN A CELL Asoka Walpitagama - Brandix College IT Excel Discussion (Misc queries) 1 January 29th 09 12:12 PM
Insert date when a cell is changed jen2018 Excel Discussion (Misc queries) 3 October 29th 08 04:36 PM
can i see the date the last time a cell was changed? JohnNuTek New Users to Excel 3 May 10th 07 11:32 PM
Code - if T changed, change date in W to date it is changed Sandy[_3_] Excel Programming 2 July 27th 03 05:33 PM


All times are GMT +1. The time now is 03:39 AM.

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

About Us

"It's about Microsoft Excel"