A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

displaying changes



 
 
Thread Tools Display Modes
  #1  
Old April 16th, 2009, 03:51 AM posted to microsoft.public.excel.worksheet.functions
Kackels
external usenet poster
 
Posts: 1
Default displaying changes

I am needing to display the date and time that text is entered into a
specific cell, and it not change. - is that possible? = example - if and
address is entered in A1 -then in A2 I need the date and time that it was
entered, without it changing.
  #2  
Old April 16th, 2009, 04:09 AM posted to microsoft.public.excel.worksheet.functions
Tom Hutchins
external usenet poster
 
Posts: 722
Default displaying changes

Try this event code:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.AddressLocal = "$A$1" Then
Target.Offset(0, 1).Value = Now()
End If
End Sub

Right-click on the sheet tab of the worksheet where you want this to work.
Select "View code" to open the Visual Basic Editor (VBE). In the big blank
window, paste the above code. Save the workbook, then close the VBE (File
Close) to return to regular Excel.

If you are new to macros, this link to Jon Peltier's site may be helpful:
http://peltiertech.com/WordPress/200...e-elses-macro/

Hope this helps,

Hutch

"Kackels" wrote:

I am needing to display the date and time that text is entered into a
specific cell, and it not change. - is that possible? = example - if and
address is entered in A1 -then in A2 I need the date and time that it was
entered, without it changing.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:47 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.