Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formula, can anyone help


Hello,
I need some help with this asap please
I have a table which I have set out like this


Date and time ¦ Column 1



I would like it so that If I enter data into column 1, the date an
time will automatically appear, the problem is thatwhen I used th
=now() formula, it worked fine for the first piece of data,but the
when I updated the second, it changed the first date and time,

Can anybody help me please?
Thanks, JDRas

--
JDRas
-----------------------------------------------------------------------
JDRasq's Profile: http://www.excelforum.com/member.php...fo&userid=2936
View this thread: http://www.excelforum.com/showthread.php?threadid=49078

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Formula, can anyone help

Not a formula, but VBA


Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "B:B"

On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target
.Offset(0, -1).Value = Format(Now, "dd mmm yyyyy hh:mm:ss")
End With
End If

ws_exit:
Application.EnableEvents = True
End Sub


'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


--

HTH

RP
(remove nothere from the email address if mailing direct)


"JDRasq" wrote in
message ...

Hello,
I need some help with this asap please
I have a table which I have set out like this


Date and time ¦ Column 1



I would like it so that If I enter data into column 1, the date and
time will automatically appear, the problem is thatwhen I used the
=now() formula, it worked fine for the first piece of data,but then
when I updated the second, it changed the first date and time,

Can anybody help me please?
Thanks, JDRasq


--
JDRasq
------------------------------------------------------------------------
JDRasq's Profile:

http://www.excelforum.com/member.php...o&userid=29367
View this thread: http://www.excelforum.com/showthread...hreadid=490788



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formula, can anyone help


Good afternoon JDRasq

The question that you're asking cannot be resolved without using VBA
however a quicker and easier solution might be to use the keyboar
shortcut ctrl + ; which will place the current time and date into th
currently active cell.

This will be "stamped" at the current time and will not be changed th
next time the cell is edited.

HTH

Dominic

--
dominic
-----------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...fo&userid=1893
View this thread: http://www.excelforum.com/showthread.php?threadid=49078

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Formula, can anyone help

VBA's not strictly necessary - you can use deliberate circular
references. See

http://www.mcgimpsey.com/excel/timestamp.html

In article ,
dominicb
wrote:

The question that you're asking cannot be resolved without using VBA,

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Formula, can anyone help

See

http://www.mcgimpsey.com/excel/timestamp.html

In article ,
JDRasq wrote:

Hello,
I need some help with this asap please
I have a table which I have set out like this


Date and time ¦ Column 1



I would like it so that If I enter data into column 1, the date and
time will automatically appear, the problem is thatwhen I used the
=now() formula, it worked fine for the first piece of data,but then
when I updated the second, it changed the first date and time,

Can anybody help me please?
Thanks, JDRasq



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
Commenting custom formula fields/formula on formula editor Muxer Excel Programming 2 July 24th 03 01:02 AM


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