Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default auto pick date & time as i enter name help me

i want to do that as i enter any name in a cell and press enter its automaticly collect the date and time from system to next cell how can i do this plz help me !! thankx
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default auto pick date & time as i enter name help me

If a value is entered in column "a" then column "b" will have the date &
time inserted. Paste this code in the worksheet module.

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A:A")) Is Nothing And Target.Count = 1 Then
Target.Offset(0, 1) = Format(Date, "m/d/yy h:mm;@")
End If
End Sub

--
Regards,
Rocky McKinley


"auto pick date & time as i enter name" wrote
in message ...
i want to do that as i enter any name in a cell and press enter its

automaticly collect the date and time from system to next cell how can i
do this plz help me !! thankx


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default auto pick date & time as i enter name help me

Assuming your Name is entered into Column B (in this example), add this code
to your worksheet

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 2 Then Target.Offset(0, 1).Value = Now()
End Sub

Rob


"auto pick date & time as i enter name" wrote
in message ...
i want to do that as i enter any name in a cell and press enter its

automaticly collect the date and time from system to next cell how can i
do this plz help me !! thankx


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 391
Default auto pick date & time as i enter name help me

right click the sheet tab, select View Code and add the
following code
by the "next cell" one assume the cell to the right of
the one that had the entry. The code uses the CHANGE
event that fires every time an entry is made. The boolean
is set to stop the code when the date is entered.



Option Explicit
Private bStop As Boolean
Private Sub Worksheet_Change(ByVal Target As Range)
If bStop Then
bStop = False
Else
bStop = True
Target.Offset(0, 1).Value = _
Format(Now(), "dd-mmm-yy hh:mm")
End If
End Sub



Patrick Molloy
Microsoft Excel MVP


-----Original Message-----
i want to do that as i enter any name in a cell and

press enter its automaticly collect the date and time
from system to next cell how can i do this plz help
me !! thankx
.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default auto pick date & time as i enter name help me

Duplicate posting.

My reply in another section checks which column the data is entered.
think this is better because the example above will run wheneve
anything is entered in the sheet

--
Message posted from http://www.ExcelForum.com



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default auto pick date & time as i enter name help me

******** MULTIPLE POSTING
This is not necessary as most of us read all the Excel sections.

This could stop us answering *any* of your queries from the assumptio
that you have posted elsewhere

--
Message posted from http://www.ExcelForum.com

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 enter date when data in enter in another cell Brian Excel Worksheet Functions 5 December 7th 06 06:44 PM
Auto enter date Scott Marcus Excel Discussion (Misc queries) 8 November 6th 06 03:47 PM
Auto enter date Hennie Excel Discussion (Misc queries) 5 July 16th 06 03:55 PM
How to auto-enter date when cell is clicked? Ron M. Excel Discussion (Misc queries) 4 October 22nd 05 08:32 PM
Auto enter date? R.P.McMurphy Excel Discussion (Misc queries) 4 August 28th 05 06:01 PM


All times are GMT +1. The time now is 11:08 PM.

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"