LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2,276
Default how to get the time

correct I'm creating a spreadsheet
but I'm looking for a formula that inserts automatically the current time on
column B when I enter a text on column A

is that possible?

thanks for reply!!
"ShaneDevenshire" wrote:

Hi,

Since you are in the Chart forum, are you talking about charts or
spreadsheet cells?

If spreadsheet cells, you will need to use vba unless you can get the user
to type in the time. The shortcut key for entering the current time in a
cell is Ctrl+: (ctrl color - shifted semi-colon)

VBA:

Private Sub Worksheet_Change(ByVal Target As Range)
Dim isect As Range
Set isect = Intersect(Target, Range("A1:A100"))
If Not isect Is Nothing Then
Target.Offset(0, 1) = Time
End If
End Sub

This needs to be in the Sheet object for the sheet you are applying this to,
such as Sheet1

Press Alt+F11, and double click the appropriate sheet under your workbook
name in the Project window at the top left. Put the code in the code sheet
to the right.

--
Thanks,
Shane Devenshire


"Eduardo" wrote:

how do I get the time on a column when a signature or a name is on another
column. For example on column B I need the time, when column A is filled.
please help

 
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
straight time, time and a half, and double time Jeremy Excel Discussion (Misc queries) 3 September 23rd 08 09:03 PM
Calculate Ending time using Start Time and Elapsed Time Chief 711 Excel Worksheet Functions 5 May 13th 08 04:34 PM
Converting date/time serial values to cumulative time totals... Kevin B Excel Discussion (Misc queries) 4 October 18th 07 05:05 PM
Formula to find Stop Time from Start Time and Total Minutes Jonathan Bickett Excel Worksheet Functions 5 March 7th 07 05:22 PM
Calculating days & time left from start date/time to end date/time marie Excel Worksheet Functions 7 December 7th 05 02:36 PM


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