Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 105
Default Input Question Help

Hi everyone,

I was wondering if there is any function or VBA coding out there allow
me to do this.

Each time I type something into each cell in Range("B2:B100") it will
display the time it was entered in (hh:mm)

e.g.

when I type "ABC" in B2 at 3:40pm it will display 3:40pm or 15:40 in
cell A2. When I type in "DEF" or any entry at B3 at 4:00pm it will
display 4:00pm or 16:00 in Cell A3.

Is this possible?

Please help

Thanks alot

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 913
Default Input Question Help

On Sat, 19 Jul 2008 22:43:35 -0700 (PDT), James8309
wrote:

Hi everyone,

I was wondering if there is any function or VBA coding out there allow
me to do this.

Each time I type something into each cell in Range("B2:B100") it will
display the time it was entered in (hh:mm)

e.g.

when I type "ABC" in B2 at 3:40pm it will display 3:40pm or 15:40 in
cell A2. When I type in "DEF" or any entry at B3 at 4:00pm it will
display 4:00pm or 16:00 in Cell A3.

Is this possible?

Please help

Thanks alot



Try putting this procedure into the worksheet:

Private Sub Worksheet_Change(ByVal Target As Range)
Set myrange = ActiveSheet.Range("B2:B100")
If Not Intersect(Target, myrange) Is Nothing Then
Target.Offset(0,-1) = Time()
End Sub

Hope this helps / Lars-Åke


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
Input box question Ewing25 Excel Programming 7 June 23rd 08 07:38 PM
Input Box Question DonovansMom Excel Programming 3 October 23rd 07 12:53 PM
Check Input, into Input box question Les Stout[_2_] Excel Programming 2 June 21st 07 06:37 PM
Input Box Question bumper338 Excel Discussion (Misc queries) 4 March 20th 07 11:18 PM
Input Box Question StGermain Excel Discussion (Misc queries) 2 March 12th 07 05:14 PM


All times are GMT +1. The time now is 02:44 AM.

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"